-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document that "empty_data" requires data in view format #6340
Labels
Comments
This was referenced Apr 6, 2016
Thanks @webmozart for taking the time to open this issue (I was just having this exact problem). And thanks @HeahDude for making a doc PR 😃 |
Thank you for this issue. |
It was fixed in https://github.com/symfony/symfony-docs/pull/7802/files, isn't it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
It should be documented with the "empty_data" option that the data must be passed in view format, in case that differs from model format. For IntegerType, for example, "empty_data" must be set to a string value, not an integer (conversely to what you would intuitively expect):
See symfony/symfony#18047
The text was updated successfully, but these errors were encountered: