DDC-920: Undefined index in UnitOfWork when detach entity without flush #5449

Closed
doctrinebot opened this Issue Dec 9, 2010 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user panda:

This code causes undefined index

$entity = new ... // some entity

$em->persist($entity);
$em->detach($entity); // throw notice Doctrine/ORM/UnitOfWork.php on line 1114

But this works well

$entity = new ... // some entity

$em->persist($entity);
$em->flush();
$em->detach($entity);

@doctrinebot

Comment created by @beberlei:

Fixed

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-RC2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment