mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3624: [GH-1338] [DDC-3619] Update identityMap when entity gets managed again #4453
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@doctrinebot commented on GitHub (Mar 17, 2015):
@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 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 closed:
https://github.com/doctrine/doctrine2/pull/1338
@doctrinebot commented on GitHub (Mar 17, 2015):
Issue was closed with resolution "Fixed"