-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Fix denormalize constructor arguments #52578
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
[Serializer] Fix denormalize constructor arguments #52578
Conversation
fabbot errors aren't related. |
7be2684
to
1ad0ecc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after minor changes
1ad0ecc
to
8f7c7ae
Compare
Thank you @mtarld. |
@mtarld could you please have a look at the current failures on branch 6.3 for Serializer? I need help to resolve them after the merge up 🙏 |
Sorry @nicolas-grekas I'm in a different timezone, so I hadn't time to take of it. But the fix provided by @xabbuh in #52665 is good (it's the one I already had on my local machine) |
Since this PR: #51907, objects with partial constructor parameters were wrongly instantiated.
This PR fixes that issue by delegating the properties values assignment, by unsetting normalized data only when the constructor has been called properly.
This might correct #50759 as well.