-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
SerializationGraphNavigator unaware of serializeNull change of context when altered in PreSerializeEvent #1157
Comments
When the serialization is started, the context should be in read-only mode. Line 133 in 5286388
assertMutable should be called inside setSerializeNull
|
See #1159 |
Alright is there a better way to configure specific entities only to serialize nulls ? |
hmm, not really... serialize null is defined in the context, there is no easy way to do it per-entity |
@goetas Well changing it in the PreSerializeEvent was pretty easy :) ... However I think we could handle it if the Navigators shouldSerializeNull property had a setter function ? ... Currently we worked around the limitation by calling the initialize function with an altered context object than in PostSerialize we set it back to its original value |
SerializationGraphNavigator doesn't take into account a possible change in the serializeNull property of the context when altered in a PreSerializeEvent.
Steps required to reproduce the problem
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: