[Flow] [SOLVED but not satisfied] How to build One-To-Many Forms > no reference to the parent object
Axel Wüstemann
awu at qbus.de
Fri Nov 8 17:39:26 CET 2013
Am 08.11.2013 15:53, schrieb mario chiari:
> Hi
>
> try to pastebin the entire package. I still suspect it is a mapping
> issue. Best luck mario
>
Mario, thank you for your interest again!
I solved all this as follows
(remember - on new parents I have up to five presetted empty children)
So I did:
add:
=====
- remove all presseted children which left empty
- add to each remaining child the parent object, because I could not
achive, that the framework will do it
- repository->add
update:
=======
- remove all presseted children which left empty
- add to each remaining child the parent object
- detele all children by a plane SQL statement from the database
(I retrieved all necessery information by the reflections service,
supported by two own annotations, so I could write all this more
abstract and put all this stuff into a parent class)
- repository->update (this allways adds the children instead of updating
them, therefor I needed to delete the children before)
This now works for me and I need to go forward within my project to
fullfill the timing constrains of my customer ;=)
Later I plan to document all this in a blog post and maybe with more
Flow experiences I could refactor all this stuff.
Axel
More information about the Flow
mailing list