mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #1032] [MERGED] Add support for optimized contains in LazyCriteria #9061
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/1032
Author: @bakura10
Created: 5/17/2014
Status: ✅ Merged
Merged: 6/21/2014
Merged by: @guilhermeblanco
Base:
master← Head:optimized-contains📝 Commits (7)
a04113fAdd support for optimized containsf52a512Add UPGRADE note239b862Add missing typehintddfc951Remove useless docblock8a8c6eaRemove extra phpdoc9d7d731Remove BC notice140dc92Enforce Criteria📊 Changes
9 files changed (+77 additions, -24 deletions)
View changed files
📝
UPGRADE.md(+5 -5)📝
lib/Doctrine/ORM/Cache/Persister/AbstractEntityPersister.php(+2 -2)📝
lib/Doctrine/ORM/LazyCriteriaCollection.php(+16 -1)📝
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(+10 -7)📝
lib/Doctrine/ORM/Persisters/EntityPersister.php(+3 -3)📝
lib/Doctrine/ORM/Persisters/OneToManyPersister.php(+4 -3)📝
tests/Doctrine/Tests/Mocks/EntityPersisterMock.php(+2 -1)📝
tests/Doctrine/Tests/ORM/Cache/Persister/AbstractEntityPersisterTest.php(+2 -2)📝
tests/Doctrine/Tests/ORM/Functional/EntityRepositoryCriteriaTest.php(+33 -0)📄 Description
Hi,
This continue my work on the LazyCriteria and include a support for optimized contains that does not initialize the full collection when checking if a record exists in a collection.
Please note that I had to modify the exists method signature in EntityInterface. I'm not sure this is a problem because, as @ocramius said in the ManyToMany thread, custom persisters is not supported. However, I added a small note to be sure ;).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.