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

        Guilherme Blanco created issue -
        Guilherme Blanco made changes -
        Field Original Value New Value
        Description That case previously triggered a PHP error along the lines of:

        {code}
        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))
        {code}
        That case previously triggered a PHP error along the lines of:

        {code}
        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))
        {code}

        Associated PR: https://github.com/doctrine/doctrine2/pull/259
        Show
        Guilherme Blanco added a comment - Merged in https://github.com/doctrine/doctrine2/commit/c1012f79706491e9dbf6c8741225b62833c6d2ce
        Guilherme Blanco made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3 [ 10185 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.2.0-RC1 [ 10191 ]
        Fix Version/s 2.2 [ 10157 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13367 ] jira-feedback [ 15199 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15199 ] jira-feedback2 [ 17063 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17063 ] jira-feedback3 [ 19316 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1606, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: