-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
boolean values not serialized when value is null. #356
Comments
You'll need to write you own handler if you want to automatically make such On Fri, Jan 10, 2014 at 11:13 AM, schingeldi [email protected]:
|
and if you want to show null values as |
Thanks, but where exactly to I configure this. Now I followed the documentation and did:
} And in services.xml:
But it does not seem to call thehandler at all |
I have serialized entity with a boolean attribute. This attribute is not shown when the value is null, its only shown if it is 0. As I use it with FosRestBundle and a form, it is set to null automatically if I change it to "false".
Is there any possibility to show null values as false?
The text was updated successfully, but these errors were encountered: