Hallo nochmals Bei weiterem Forschen bin ich darauf gestoßen, daß das New-Formular nicht korrekt ist. Dort gibt es ja hidde-Felder und unter anderem das:
<input type="hidden" value="a:1:{s:16:"newAccreditation";a:5:{s:4:"year";i:1;s:7:"contact";a:5:{s :9:"firstname";i:1;s:8:"lastname";i:1;s:5:"email";i:1;s:5:"phone";i:1;s:7:"a ddress";i:1;}s:5:"alias"; Wie man sehen kann fehlt hier im Abschnitt "contact" das Feld "position".Warum, es ist im Model mit Getter und Setter, es ist mit allowAllPropertiesExcept genehmigt. Die Extension habe ich auch neu installiert und alle Caches (ja alle) geleert - ohne Erfolg. Johannes -----Ursprüngliche Nachricht----- Von: typo3-german-boun...@lists.typo3.org [mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von Johannes C. Schulz - EnzephaloN IT-Solutions Gesendet: Dienstag, 8. Juli 2014 11:40 An: typo3-german@lists.typo3.org Betreff: [TYPO3-german] Extbase PropertyMapper: allowAllProperties und trotzdem Fehler Hallo Ich habe heute mein bestehendes Domänenmodel um ein Property erweitert und plötzlich bekomme ich den Fehler Exception while property mapping at property path "contact":It is not allowed to map property "position". Das kann aber garnicht sein, denn in meinem Controller habe ich eine Methode initializeCreateAction mit folgendem Code: /** * @return void */ public function initializeCreateAction(){ $accreditationMappingConfiguration = $this->arguments->getArgument('newAccreditation')->getPropertyMappingConfigu ration(); if (TYPO3_MODE === 'BE'){ $accreditationMappingConfiguration->allowAllProperties(); }else{ $accreditationMappingConfiguration->allowAllPropertiesExcept('status','user' ); } $accreditationMappingConfiguration->setTypeConverterOption('TYPO3\CMS\Extbas e\Property\TypeConverter\PersistentObjectConverter', \TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter::CONFIGU RATION_CREATION_ALLOWED, TRUE); } contact ist ein Property von newAccreditation. Wo kann der Fehler noch herkommen? Wie gesagt, alle anderen contact-Properties funktionieren anstandslos. Johannes _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german