Skip to content
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 entity refresh after cleared em #10362

Closed
wants to merge 3 commits into from

Conversation

simonberger
Copy link
Contributor

Fixes #10336

Includes reproducing test of #10337

This fixes a missing handling of HINT_REFRESH_ENTITY and ignored private identifier property in a parent class.


* @psalm-return array<string, true>
*/
private function collectClassSkippedProperties(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straight forward solution coming into my mind first but really not the most elegant one. A pity the already available field mapping of ClassMetadataInfo cannot be used. It just misses a few information like private visibility of the properties.

Another much easier fix could be to make sure the identifier is in the skip array after the loop. If this is not the case we should be able to consider it private and therefor have all information to add it. All other private properties of parent classes should not matter anyway, if I got that correctly.

lib/Doctrine/ORM/Proxy/ProxyFactory.php Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants