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 don't know if it is an expected behavior,
but when using an Embed Collection of Forms,
when you try to access the bound data with $builder->getData(), the result is null.
I don't know if it is an expected behavior,
but when using an Embed Collection of Forms,
when you try to access the bound data with
$builder->getData()
, the result is null.You need to go through the PRE_SET_DATA eventListener to get the data with
$event->getData()
.Even worth, when the form (which call the CollectionType) sets the
by_reference
to false,the entire form must to be inside a PRE_SET_DATA event.
If it is a thing,
I think it is worth mentioning that somewhere in the doc.
The text was updated successfully, but these errors were encountered: