DDC-3624: [GH-1338] [DDC-3619] Update identityMap when entity gets managed again #4453

Closed
opened 2026-01-22 14:41:54 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 17, 2015).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of nclavaud:

Url: https://github.com/doctrine/doctrine2/pull/1338

Message:

http://www.doctrine-project.org/jira/browse/DDC-3619

When using SoftDeleteable doctrine extension, an entity can be scheduled
for deletion, then persisted before flushing. In such a case, the entity
was removed from the unit of work identity map and no reference was
hold. This could lead to spl_object_hash collisions, and prevent
another, new entity to be persisted later.

This fix makes sure the unit of work identity map holds a reference to
the entity after it has been soft-deleted.

Originally created by @doctrinebot on GitHub (Mar 17, 2015). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of nclavaud: Url: https://github.com/doctrine/doctrine2/pull/1338 Message: http://www.doctrine-project.org/jira/browse/[DDC-3619](http://www.doctrine-project.org/jira/browse/DDC-3619) When using SoftDeleteable doctrine extension, an entity can be scheduled for deletion, then persisted before flushing. In such a case, the entity was removed from the unit of work identity map and no reference was hold. This could lead to spl_object_hash collisions, and prevent another, new entity to be persisted later. This fix makes sure the unit of work identity map holds a reference to the entity after it has been soft-deleted.
admin added the Bug label 2026-01-22 14:41:54 +01:00
admin closed this issue 2026-01-22 14:41:55 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2015):

@doctrinebot commented on GitHub (Mar 17, 2015): - is required for [DDC-3619: spl_object_hash collision ](http://www.doctrine-project.org/jira/browse/DDC-3619) - relates to [DDC-3619: spl_object_hash collision ](http://www.doctrine-project.org/jira/browse/DDC-3619)
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1338] was assigned:
https://github.com/doctrine/doctrine2/pull/1338

@doctrinebot commented on GitHub (Mar 17, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1338] was assigned: https://github.com/doctrine/doctrine2/pull/1338
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1338] was labeled:
https://github.com/doctrine/doctrine2/pull/1338

@doctrinebot commented on GitHub (Mar 17, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1338] was labeled: https://github.com/doctrine/doctrine2/pull/1338
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1338] was closed:
https://github.com/doctrine/doctrine2/pull/1338

@doctrinebot commented on GitHub (Mar 17, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1338] was closed: https://github.com/doctrine/doctrine2/pull/1338
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2015):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Mar 17, 2015): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4453