Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1606

Added fix for collection->contains with many-to-many extra lazy fetchMode

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-RC1, 2.2, 2.3
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      That case previously triggered a PHP error along the lines of:

      Notice: Undefined index: 0000000062a3a7690000000033c91b26 in doctrine/lib/Doctrine/ORM/UnitOfWork.php line 2202
      #0 doctrine/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php(267): Doctrine\ORM\UnitOfWork->getEntityIdentifier(Object(Item))
      #1 doctrine/lib/Doctrine/ORM/PersistentCollection.php(411): Doctrine\ORM\Persisters\ManyToManyPersister->contains(Object(Doctrine\ORM\PersistentCollection), Object(Item))
      #2 Test.php(71): Doctrine\ORM\PersistentCollection->contains(Object(Item))
      

      Associated PR: https://github.com/doctrine/doctrine2/pull/259

        Activity

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Guilherme Blanco
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: