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 an issue using the EntityToIdObjectTransformer on my form. I'm using Symfony 5 and latest version of FOSRestBundle. (With JMSSerializerBundle)
The Transformer always receive a null value causing the form to return "This value is not valid" for my customer field. I'm sending the following json object (POST) :
That probably used to work in the past where the Symfony TextType did not check the submitted value. We changed that in a security patch some time ago. Now the form submission will fail with compound data being submitted to the TextType.
Hi,
I have an issue using the EntityToIdObjectTransformer on my form. I'm using Symfony 5 and latest version of FOSRestBundle. (With JMSSerializerBundle)
The Transformer always receive a null value causing the form to return "This value is not valid" for my customer field. I'm sending the following json object (POST) :
{lines: [], docDate: "2020-04-14T22:49:34.543Z", customer: {id: 1, name: "Trovato SA"}}
Response :
{ "code": 400, "message": "Validation Failed", "errors": { "children": { "docDate": {}, "lines": {}, "customer": { "errors": [ "This value is not valid." ] } } } }
My form :
My Controller :
My Entities :
Thanks for you help
Regards
The text was updated successfully, but these errors were encountered: