[PR #8384] [GH-6394] Bugfix: IdentifierFlattener support for association non-object values. #10959

Open
opened 2026-01-22 16:09:13 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/8384

State: closed
Merged: Yes


Fixes #6394 Fixes #6393

BasicEntityPersister::update passes the wrong representation of identifiers to assignDefaultVersionValue. Instead of grabbing the values from UnitOfWork::getEntityIdentifier the method ClassMetadataInfo::getIdentifierValues must be used as in all other places where the identify flattener is ultimately used.

The difference is that UnitOfWork identifiers contain the scalar values representing an association identifier, but ClassMetadataInfo representation returns the actual entity object.

/cc @goetas

**Original Pull Request:** https://github.com/doctrine/orm/pull/8384 **State:** closed **Merged:** Yes --- Fixes #6394 Fixes #6393 `BasicEntityPersister::update` passes the wrong representation of identifiers to `assignDefaultVersionValue`. Instead of grabbing the values from `UnitOfWork::getEntityIdentifier` the method `ClassMetadataInfo::getIdentifierValues` must be used as in all other places where the identify flattener is ultimately used. The difference is that `UnitOfWork` identifiers contain the scalar values representing an association identifier, but `ClassMetadataInfo` representation returns the actual entity object. /cc @goetas
admin added the pull-request label 2026-01-22 16:09:13 +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#10959