Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-920

Undefined index in UnitOfWork when detach entity without flush

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC1
    • Fix Version/s: 2.0-RC2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      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);

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Martin Vidensky
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: