-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Fix wrong initialisation of proxies with public properties #2082
Conversation
f54d694
to
0ecbd08
Compare
Thanks for the fix! And it'd be nice if these changes can land in release asap since it's blocking my upgrade process :P |
0ecbd08
to
6395ff4
Compare
Thanks @alcaeus! |
2.0.1 has been released: https://github.com/doctrine/mongodb-odm/releases/tag/2.0.1 |
@alcaeus Thanks for the release! |
From what I can see the test I added covers yours, so you don't need to bother cleaning it up ;) |
Summary
This fixes an issue where hydrating a proxy object will not initialise any properties that aren't passed to the hydrator. With this fix, we invoke proxy initialisation with an empty initialiser so we initialise an empty object before adding any data.