Open tacman opened 3 years ago
Did you find a solution to your use-case? Can this issue be closed?
I didn't find a solution, but I'm likely to try again this week.
I didn't find a solution, but I'm likely to try again this week.
Did you find a solution to your use-case? Can this issue be closed?
@tacman , hi! Try to grep the validator component for the string "One or more of items given doesn't look like valid" because it seems that there is some validator that can not process the input data correctly. Have you assigned any constraints to your form?
I'm trying to implement a data transformer to save integer[] values in a postgres database using the bundle.
I'd like to add these tags Id via a custom form type (for now, just a string of comma-delimited integers, for this issue report)
The TagIdsType, following the instructions from https://symfony.com/doc/current/form/create_custom_field_type.html
Finally, the TagIdsTransformer:
When I fill out the form with a string of comma-delimited integers, it fails with the message
The transform and reverseTransform appear to be returning the right values, so I'm not sure where the error is. Obviously, I don't want tag_string, it's not part of the entity.
I'm posting here because if someone provides a solution, I can submit a PR to the documentation, as I imagine this can help others as well. Thanks.