[PR #1527] [DDC-3933] Object string conversion failure when merging detached primary foreign key entity #9581

Closed
opened 2026-01-22 16:04:45 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


We've found for non-cascading merges on entities with an association to a primary foreign key table, the entity itself is passed to \Doctrine\ORM\UnitOfWork::registerManaged. This proposed fix runs this through the identity flattener to extract the primary key value, avoiding the object being used as a string.
http://www.doctrine-project.org/jira/browse/DDC-3933

**Original Pull Request:** https://github.com/doctrine/orm/pull/1527 **State:** closed **Merged:** No --- We've found for non-cascading merges on entities with an association to a primary foreign key table, the entity itself is passed to `\Doctrine\ORM\UnitOfWork::registerManaged`. This proposed fix runs this through the identity flattener to extract the primary key value, avoiding the object being used as a string. http://www.doctrine-project.org/jira/browse/DDC-3933
admin added the pull-request label 2026-01-22 16:04:45 +01:00
admin closed this issue 2026-01-22 16:04:46 +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#9581