-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
getter is not called when serializing Discriminator parent entity #156
Comments
What you need is the |
ok, thanks a lot :-) |
I applied I want use Is it possible to configure it in one place, and do not repeat in any Entity or Document? And I do not want to apply it to setters, but only for getters, because I do not have setters on some properties, and it throws error:
|
For future reference, there is a hint regarding this issue in the docs:
|
Hello
It seems that at the moment when using Discriminator, the getter for exposed property does not get called.
I am adding a code example to explain my question.
Given this code snippet, would it be possible to have serialized property km to have the value of 25?
Thanks in advance!
Nicolas.
The text was updated successfully, but these errors were encountered: