[FLOW3-general] help needed: editing multiple objects in one form
Wasko
admin at regionalberatung.at
Fri Mar 15 09:14:49 CET 2013
Hi,
I'm programing a simple app to learn how to create and edit data from
two objects in one form (dto). I did it like in the Cookbook
http://wiki.typo3.org/FLOW3_Cookbook written.
Creating datasets works fine. But how can I edit them? Calling edit
action ends up in errors like that:
/wl.test/masterdetail/edit?master[__identity]=123456
Error: Required argument "masterdetaildto" is not set.
/wl.test/masterdetail/edit?masterdetaildto[__identity]=123456
Exception while property mapping for target type
"WL\Test\Domain\Dto\Masterdetaildto", at property path "": It is not
allowed to map property "__identity". You need to use
$propertyMappingConfiguration->allowProperties('__identity') to enable
mapping of this property.
Apps's sources can be found here https://github.com/regioadmin/WL.Test
The app has two models called master and detail (1:n)
masterdetailcontroller is for creating and editing :
https://github.com/regioadmin/WL.Test/blob/master/Classes/WL/Test
/Controller/MasterdetailController.php
controller uses this dto:
https://github.com/regioadmin/WL.Test/tree/master/Classes/WL/Test/Domain/Dto
More information about the FLOW3-general
mailing list