-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Update collection recursive extract and populating nested fieldsets #5502
Conversation
Appending the child object to the child fieldset instead the parent one. Setting values of child fieldset as the correct extract
Thats much better than current code. At least it doesnt try to set an array to a fieldset. But it is still giving me errors. Also this test isnt passing #5495 |
For some reason, when dealing with nested fieldsets, you must to add a new Hydrator to then on the "mainFieldset" after adding it (even if in the target Fieldset you already add one): on "mainFieldset":
on target Fieldset $this->setHydrator(new DoctrineHydrator($objectManager))->setObject(new \Bundle\Entity\Specification()); Had to do that to solve my issue with nested fieldsets |
That is very weird. @thestanislav, can you take a look? |
I think this really should be merged asap. My nested forms are trying to bind arrays to fieldsets, which is obviouly wrong. |
@thestanislav Are you still on this? Can i talk to you in #zftalk? What is your nickname? |
Please add test cases |
Update collection recursive extract and populating nested fieldsets Conflicts: library/Zend/Form/Element/Collection.php
- Unit test passes now, meaning we can close both issues.
Appending the child object to the child fieldset instead the parent one. Setting values of child fieldset as the correct extract