[PR #552] [CLOSED] Added new query hints: HINT_NO_STORE_IDENTITY_MAP, HINT_NO_LOAD_ASSOCIATED_SUBTYPES #8359

Open
opened 2026-01-22 15:59:32 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/552
Author: @Koc
Created: 1/20/2013
Status: Closed

Base: masterHead: new-query-hints


📝 Commits (1)

  • c2fae6b Added 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

  1. HINT_NO_STORE_IDENTITY_MAP usable 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_MAP allow avoid this.
  2. HINT_NO_LOAD_ASSOCIATED_SUBTYPES usable when we have entity which has one-to-one or many-to-one association to abstract entity with subtypes.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/552 **Author:** [@Koc](https://github.com/Koc) **Created:** 1/20/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `new-query-hints` --- ### 📝 Commits (1) - [`c2fae6b`](https://github.com/doctrine/orm/commit/c2fae6b04e0f79d9104cbb9dc4f3c738a87e8206) Added new query hints: HINT_NO_STORE_IDENTITY_MAP, HINT_NO_LOAD_ASSOCIATED_SUBTYPES ### 📊 Changes **6 files changed** (+90 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description 1. `HINT_NO_STORE_IDENTITY_MAP` usable 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_MAP` allow avoid this. 2. `HINT_NO_LOAD_ASSOCIATED_SUBTYPES` usable when we have entity which has `one-to-one` or `many-to-one` association to abstract entity with subtypes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:59:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8359