You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a strange behaviour with a form (mapped to an array, not to a Entity) containing a field of type EntityType with multiple=true.
If I set that field with initial data an empty array, e.g. array(), after successful submit when I call $form->getData() I get an ArrayCollection for that field.
Instead, if I set that field with initial data a non empty array, after a successful submit when I call $form->getData() I get a simple array for that field.