DDC-2535: [GH-712] Extra lazy get for inverse side of many-to-many #3179

Closed
opened 2026-01-22 14:14:40 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 1, 2013).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of sandermarechal:

Url: https://github.com/doctrine/doctrine2/pull/712

Message:

This is the cange requested by @stof and @beberlei in PR #710. It implements an extra lazy get on the working side of the relationship. As mentioned in #710 the unit tests fails for reasons I don't quite understand. The error I get is:

1) Doctrine\Tests\ORM\Functional\ExtraLazyCollectionTest::testGetIndexByManyToMany
Exception: [PHPUnit*Framework_Error*Notice] Undefined index: joinColumns

Trace:
/home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:1665
/home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:1610
/home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:1701
/home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:1115
/home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:746
/home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php:55
/home/sander/src/doctrine2/lib/Doctrine/ORM/PersistentCollection.php:529
/home/sander/src/doctrine2/tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php:578

If someone with a little more understanding of the Doctrine internals can help me fix this, then we could restore some of the functionality that PR #710 had to remove.

Originally created by @doctrinebot on GitHub (Jul 1, 2013). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of sandermarechal: Url: https://github.com/doctrine/doctrine2/pull/712 Message: This is the cange requested by @stof and @beberlei in PR #710. It implements an extra lazy get on the working side of the relationship. As mentioned in #710 the unit tests fails for reasons I don't quite understand. The error I get is: ``` 1) Doctrine\Tests\ORM\Functional\ExtraLazyCollectionTest::testGetIndexByManyToMany Exception: [PHPUnit*Framework_Error*Notice] Undefined index: joinColumns Trace: /home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:1665 /home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:1610 /home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:1701 /home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:1115 /home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:746 /home/sander/src/doctrine2/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php:55 /home/sander/src/doctrine2/lib/Doctrine/ORM/PersistentCollection.php:529 /home/sander/src/doctrine2/tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php:578 ``` If someone with a little more understanding of the Doctrine internals can help me fix this, then we could restore some of the functionality that PR #710 had to remove.
admin added the Improvement label 2026-01-22 14:14:40 +01:00
admin closed this issue 2026-01-22 14:14:40 +01:00
Author
Owner
@doctrinebot commented on GitHub (Jul 1, 2013): - duplicates [DDC-3492: [GH-1249] Support for extra lazy get for both owning and inverse side on many to many associations.](http://www.doctrine-project.org/jira/browse/DDC-3492) - relates to [DDC-3130: [GH-1033] [WIP] Lazy criteria for ManyToMany collection](http://www.doctrine-project.org/jira/browse/DDC-3130)
Author
Owner

@doctrinebot commented on GitHub (Nov 5, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-712] was assigned:
https://github.com/doctrine/dbal/pull/712

@doctrinebot commented on GitHub (Nov 5, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-712] was assigned: https://github.com/doctrine/dbal/pull/712
Author
Owner

@doctrinebot commented on GitHub (Jan 13, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-712] was closed:
https://github.com/doctrine/doctrine2/pull/712

@doctrinebot commented on GitHub (Jan 13, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-712] was closed: https://github.com/doctrine/doctrine2/pull/712
Author
Owner

@doctrinebot commented on GitHub (Jan 14, 2015):

Comment created by @ocramius:

To be handled in DDC-3492

@doctrinebot commented on GitHub (Jan 14, 2015): Comment created by @ocramius: To be handled in [DDC-3492](http://www.doctrine-project.org/jira/browse/DDC-3492)
Author
Owner

@doctrinebot commented on GitHub (Jan 14, 2015):

Issue was closed with resolution "Duplicate"

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

No dependencies set.

Reference: doctrine/archived-orm#3179