Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Form] Cast choices value callback result to string#49009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
040c4d0 to9b37a6eCompareMatth-- commentedJan 17, 2023
Not sure what to do about the failing test as the |
stof commentedJan 17, 2023
high-deps will be fixed once the PR is merged up. But low-deps requires a change in the lowest bound of the constraint in the doctrine-bridge |
Matth-- commentedJan 17, 2023
@stof I could also remove the test case as it does pretty much the same thing as the one in the Form component. I added it in the first case because I had issues with the EntityType. WDYT? |
9b37a6e to11b3b5dCompareMatth-- commentedMar 27, 2023
Is there anything I should change for this PR? Or should we find a different solution to this. Sorry for the tag |
If using "multiple" and "choice_value" on a CollectionType or EntityType, the result for the callback needs to be a string. By forcing a string cast, default values will show up in the form view.
11b3b5d tobe58048Comparenicolas-grekas commentedApr 17, 2023
Thank you@Matth--. |
When using "multiple" and "choice_value" callback on a CollectionType or EntityType, the result for the callback needs to be a string. By forcing a string cast, default values will show up in the form view.