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
In form generation by annotations, if in an entity we have an attribute where no mapping is defined, the Doctrine Form Element is not rendered anymore in 0.8.x
But unfortunately, as mapping association is not defined on this attribute, the ObjectSelect is not generated. It generates an input type="text", and the value is hydrated
It seems that other few things seem broken to me. Maybe I don't use them correctly. But simply the following doesn't seem to generate a radio element. Just generates an input text
okay, provided quick fixes, but not really sure they are in a fashion way :/ Before I improve or submit a PR, here are 2 gists that fix the problems. All comments welcome. Be indulgent :]
In form generation by annotations, if in an entity we have an attribute where no mapping is defined, the Doctrine Form Element is not rendered anymore in 0.8.x
Example that worked in 0.7 :
In controller (workaround before this module handled mapping associations)
This used to work, and the form element was correctly hydrated with DoctrineModule\Stdlib\Hydrator\DoctrineObject
Now, as annotations handle $em, we can do :
But unfortunately, as mapping association is not defined on this attribute, the ObjectSelect is not generated. It generates an input type="text", and the value is hydrated
This continues to work anyway. That's why maybe, we should expect the annotations way to work too
The text was updated successfully, but these errors were encountered: