DDC-1606: Added fix for collection->contains with many-to-many extra lazy fetchMode #2015

Closed
opened 2026-01-22 13:37:40 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 17, 2012).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @guilhermeblanco:

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

Originally created by @doctrinebot on GitHub (Jan 17, 2012). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @guilhermeblanco: 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
admin added the Bug label 2026-01-22 13:37:40 +01:00
admin closed this issue 2026-01-22 13:37:41 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 17, 2012):

Comment created by @guilhermeblanco:

Merged in c1012f7970

@doctrinebot commented on GitHub (Jan 17, 2012): Comment created by @guilhermeblanco: Merged in https://github.com/doctrine/doctrine2/commit/c1012f79706491e9dbf6c8741225b62833c6d2ce
Author
Owner

@doctrinebot commented on GitHub (Jan 17, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jan 17, 2012): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2015