[PR #863] [MERGED] The new configuration option: defaultQueryHints #8820

Open
opened 2026-01-22 16:01:51 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/863
Author: @Strate
Created: 11/27/2013
Status: Merged
Merged: 5/15/2014
Merged by: @guilhermeblanco

Base: masterHead: feature/default-query-hints


📝 Commits (3)

  • e8d47fa Added a new configuration option: defaultQueryHints, which allows to populate all queries by default set of hints.
  • 352f38a Fix comment
  • 5c44dd3 Allow to use object as a hint value.

📊 Changes

4 files changed (+77 additions, -2 deletions)

View changed files

📝 lib/Doctrine/ORM/AbstractQuery.php (+3 -1)
📝 lib/Doctrine/ORM/Configuration.php (+53 -0)
📝 lib/Doctrine/ORM/Query.php (+1 -1)
📝 tests/Doctrine/Tests/ORM/Query/QueryTest.php (+20 -0)

📄 Description

I propose the new configuration option: defaultQueryHints, where developer can set array of hints, which will be applied to every query, created by doctrine. This option will be useful to set global AST walker, for example.


🔄 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/863 **Author:** [@Strate](https://github.com/Strate) **Created:** 11/27/2013 **Status:** ✅ Merged **Merged:** 5/15/2014 **Merged by:** [@guilhermeblanco](https://github.com/guilhermeblanco) **Base:** `master` ← **Head:** `feature/default-query-hints` --- ### 📝 Commits (3) - [`e8d47fa`](https://github.com/doctrine/orm/commit/e8d47fa9a32be68c37a9d7814389101d44e8eb02) Added a new configuration option: defaultQueryHints, which allows to populate all queries by default set of hints. - [`352f38a`](https://github.com/doctrine/orm/commit/352f38a77e4b56902720e5fdfe8c48bb0177e5a0) Fix comment - [`5c44dd3`](https://github.com/doctrine/orm/commit/5c44dd38234f2e143e376ac94d2e7f945d7f9328) Allow to use object as a hint value. ### 📊 Changes **4 files changed** (+77 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/AbstractQuery.php` (+3 -1) 📝 `lib/Doctrine/ORM/Configuration.php` (+53 -0) 📝 `lib/Doctrine/ORM/Query.php` (+1 -1) 📝 `tests/Doctrine/Tests/ORM/Query/QueryTest.php` (+20 -0) </details> ### 📄 Description I propose the new configuration option: `defaultQueryHints`, where developer can set array of hints, which will be applied to every query, created by doctrine. This option will be useful to set global AST walker, for example. --- <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 16:01:51 +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#8820