[FLOW3-general] Mapping data on existing objects

Pascal Jungblut typo3 at pascalj.com
Thu Jul 7 00:13:08 CEST 2011


Hi FLOW3 ninjas,

I'm currently trying to update objects with ExtDirect and the Ext.data.Grid. The problem is that the type of the objects is only known at runtime so I cannot annotate the class name/type in the ExtDirect controller to build the correct object out of the data it receives (like it would if you submit something with Fluid).
So my initial plan was it to get the "old" object from the database using the identifier, call mapAndValidate() with the new data and then update() it. Unfortunately the new PropertyMapper only has a function convert() which doesn't accept objects any more.
How can I map that data from ExtDirect onto the old object? I'd be glad if you have some hints for me.

Regards
Pascal


More information about the FLOW3-general mailing list