DDC-3886: ClassMetadata::getIdentifierValues is broken for uninitialized proxy objects #4754

Open
opened 2026-01-22 14:48:45 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 2, 2015).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user stof:

ClassMetadata::getIdentifierValues uses Reflection to read the identifier from the object properties. But uninitialized proxies don't store them in these fields yet but in a special location in the proxy.
In such case, the return value of the method will be wrong.

Originally created by @doctrinebot on GitHub (Sep 2, 2015). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user stof: ClassMetadata::getIdentifierValues uses Reflection to read the identifier from the object properties. But uninitialized proxies don't store them in these fields yet but in a special location in the proxy. In such case, the return value of the method will be wrong.
admin added the Bug label 2026-01-22 14:48:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4754