Hallo Zusammen,

hat jemand schon einmal Erfahrung sammeln können in der Erstellung von 
Formularen mit Relationsmodellen?
Ich habe ein Anfrage Formular, welches zwei 1:n-Relationen besitzt.
Die Formularfelder erstelle ich mit folgendem Schema:
<f:form.select property="relation.property" options="{propertyOptions}" 
prependOptionLabel="-- Bitte auswählen --" />

Das generierte Feld sieht auch korrekt aus:
<select name="tx_ext_plugin[controller][relation][property]"> ...</select>

das propertyOptions array sieht wie folgt aus:
$propertyOptions = ['value1' => 'value1', 'value2' => 'value2', ...];

Wenn ich nun aber das Formular absende, bekomme ich immer eine Exception des 
PropertyMappers.
'Exception while property mapping at property path "relation.property":The identity 
property "value2" is no UID'

Ich habe eine Optionen mit Hilfe der getPropertyMappingConfiguration() Methode 
ausprobiert, jedoch keine gefunden, die zum Erfolg führte.
Wenn ich skipProperties() benutze ist zwar die Exception weg, allerdings auch das 
gesamte property aus $this->request

Hat jemand eine Idee was ich ändern muss?
Ich habe zudem noch ein Dateiupload im Relationsmodel, aber das ist ein Thema 
für sich. ;)

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an