[FLOW3-general] help needed: editing multiple objects in one form

Bastian Waidelich bastian at typo3.org
Fri Mar 15 10:00:33 CET 2013


Wasko wrote:

Hi Wasko(?),

> I'm programing a simple app to learn how to create and edit data from
> two objects in one form (dto).[...]

> /wl.test/masterdetail/edit?masterdetaildto[__identity]=123456
>   Exception while property mapping for target type
> "WL\Test\Domain\Dto\Masterdetaildto" [...]


Your Dto wouldn't contain a @FLOW3\Entity annotation. Thus it is not 
persisted and it won't have an "__identity".
Instead you should add the real entities to your link arguments and 
build the Dto in your controller.

I have added that scenario to the example at:

http://wiki.typo3.org/Flow_Cookbook#Create_multiple_objects_with_one_Fluid_form

HTH,

-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list