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'm trying to create a dynamic form that returns country > region > city. However I'm having a problem choosing the region that is in a formIdentifier. My JS script returns me not an object but an integer. So I can't query my cities.
In my symfony profiler when i select one Dpt i have this error msg : -messageTemplate: "The selected choice is invalid." Symfony\Component\Form\Extension\Validator\Constraints
Form {#1136 …} -code: "1dafa156-89e1-4736-b832-419c2e501fca" -cause: Symfony\Component\Form\Exception\TransformationFailedException
This is my entity : Country (id, name) Dpt (id, name, country_id) City (id, name, dpt_id)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Good morning,
I'm trying to create a dynamic form that returns country > region > city. However I'm having a problem choosing the region that is in a formIdentifier. My JS script returns me not an object but an integer. So I can't query my cities.
In my symfony profiler when i select one Dpt i have this error msg : -messageTemplate: "The selected choice is invalid." Symfony\Component\Form\Extension\Validator\Constraints
Form {#1136 …} -code: "1dafa156-89e1-4736-b832-419c2e501fca" -cause: Symfony\Component\Form\Exception\TransformationFailedException
This is my entity : Country (id, name) Dpt (id, name, country_id) City (id, name, dpt_id)
Thank you for your help
Beta Was this translation helpful? Give feedback.
All reactions