Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DDC-3619] Update identityMap when entity gets managed again #1338

Closed
wants to merge 1 commit into from

Conversation

nclavaud
Copy link
Contributor

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.

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
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

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

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius
Copy link
Member

@nclavaud looking good, will likely merge today.

@Ocramius Ocramius self-assigned this Mar 17, 2015
Ocramius added a commit that referenced this pull request Mar 17, 2015
Ocramius added a commit that referenced this pull request Mar 17, 2015
@Ocramius Ocramius closed this in ce41e35 Mar 17, 2015
Ocramius added a commit that referenced this pull request Mar 17, 2015
Ocramius added a commit that referenced this pull request Mar 17, 2015
Ocramius added a commit that referenced this pull request Mar 17, 2015
@Ocramius
Copy link
Member

@nclavaud merged, thanks!

master: ce41e35
2.4: 1c8f9ca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants