mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #885] [MERGED] Add support for ManyToMany Criteria #8852
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/885
Author: @bakura10
Created: 12/22/2013
Status: ✅ Merged
Merged: 3/16/2014
Merged by: @guilhermeblanco
Base:
master← Head:criteria-many-to-many📝 Commits (10+)
160b07dRebase to master07654ddRevert tab changes738cc25Revert docblock9385a60Fix wrong logicbe39afaAdd method to interfacebb1f71fFix docblockc69b756Remove useless exceptionfbbe922Fix testse5ba286fallback to persister counta55f2c4Fix test📊 Changes
7 files changed (+169 additions, -28 deletions)
View changed files
📝
lib/Doctrine/ORM/Cache/Persister/AbstractCollectionPersister.php(+9 -0)📝
lib/Doctrine/ORM/PersistentCollection.php(+4 -2)📝
lib/Doctrine/ORM/Persisters/AbstractCollectionPersister.php(+10 -1)📝
lib/Doctrine/ORM/Persisters/CollectionPersister.php(+11 -0)📝
lib/Doctrine/ORM/Persisters/ManyToManyPersister.php(+111 -24)📝
tests/Doctrine/Tests/ORM/Cache/Persister/AbstractCollectionPersisterTest.php(+2 -1)📝
tests/Doctrine/Tests/ORM/Functional/ManyToManyBasicAssociationTest.php(+22 -0)📄 Description
This replaces https://github.com/doctrine/doctrine2/pull/773
It adds support for ManyToMany but also do an efficient filtering instead of loading the whole collection. I think it can also benefits from https://github.com/doctrine/doctrine2/pull/882 when this one get merged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.