mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #552] [CLOSED] Added new query hints: HINT_NO_STORE_IDENTITY_MAP, HINT_NO_LOAD_ASSOCIATED_SUBTYPES #8359
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/552
Author: @Koc
Created: 1/20/2013
Status: ❌ Closed
Base:
master← Head:new-query-hints📝 Commits (1)
c2fae6bAdded new query hints: HINT_NO_STORE_IDENTITY_MAP, HINT_NO_LOAD_ASSOCIATED_SUBTYPES📊 Changes
6 files changed (+90 additions, -12 deletions)
View changed files
📝
lib/Doctrine/ORM/Query.php(+9 -2)📝
lib/Doctrine/ORM/UnitOfWork.php(+8 -3)📝
tests/Doctrine/Tests/Models/Company/CompanyEmployee.php(+6 -0)📝
tests/Doctrine/Tests/ORM/Functional/IdentityMapTest.php(+27 -2)📝
tests/Doctrine/Tests/ORM/Functional/SingleTableInheritanceTest.php(+35 -0)📝
tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php(+5 -5)📄 Description
HINT_NO_STORE_IDENTITY_MAPusable for situations when we have article with big text fields and use partial loading for list articles. When we try load article by id from loaded list on same request we got partial entity.HINT_NO_STORE_IDENTITY_MAPallow avoid this.HINT_NO_LOAD_ASSOCIATED_SUBTYPESusable when we have entity which hasone-to-oneormany-to-oneassociation to abstract entity with subtypes.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.