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
Since we've updated to 2.7.1 the EntityType with expanded: true does not accept an entity as a default value anymore. A LogicException occurs when the user goes back to edit the entity, where defaultData is added to the builder:
The form's view data is expected to be of type scalar, array or an instance of \ArrayAccess, but is an instance of class Proxies__CG__\AppBundle\Entity\Order\Subject. You can avoid this error by setting the "data_class" option to "Proxies__CG__\AppBundle\Entity\Order\Subject" or by adding a view transformer that transforms an instance of class Proxies__CG__\AppBundle\Entity\Order\Subject to scalar, array or an instance of \ArrayAccess.
Since we've updated to
2.7.1
theEntityType
withexpanded: true
does not accept an entity as a default value anymore. ALogicException
occurs when the user goes back to edit the entity, wheredefaultData
is added to the builder:The exception can be solved in two ways, by setting
expanded
tofalse
or by definingdata_class
:Looks like a BC break, think
EntityType
should resolve thedata_class
based on theclass
right?The text was updated successfully, but these errors were encountered: