[PR #720] [MERGED] Allow to have non-distinct queries #8611

Closed
opened 2026-01-22 16:00:45 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/720
Author: @bakura10
Created: 7/9/2013
Status: Merged
Merged: 8/6/2013
Merged by: @guilhermeblanco

Base: masterHead: fix-paginator


📝 Commits (1)

  • 3f112db Allow to have non-distinct queries

📊 Changes

3 files changed (+15 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/AbstractQuery.php (+12 -0)
📝 lib/Doctrine/ORM/Tools/Pagination/Paginator.php (+1 -1)
📝 tests/Doctrine/Tests/ORM/Query/QueryTest.php (+2 -0)

📄 Description

The getHint method would return false if no hint was set for the given name. Therefore even if you set the CountWalker::HINT_DISTINCT to false, it would have been ignored and set to true by the paginator.


🔄 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/720 **Author:** [@bakura10](https://github.com/bakura10) **Created:** 7/9/2013 **Status:** ✅ Merged **Merged:** 8/6/2013 **Merged by:** [@guilhermeblanco](https://github.com/guilhermeblanco) **Base:** `master` ← **Head:** `fix-paginator` --- ### 📝 Commits (1) - [`3f112db`](https://github.com/doctrine/orm/commit/3f112db7256994fc2284f011b4063d36b8614016) Allow to have non-distinct queries ### 📊 Changes **3 files changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/AbstractQuery.php` (+12 -0) 📝 `lib/Doctrine/ORM/Tools/Pagination/Paginator.php` (+1 -1) 📝 `tests/Doctrine/Tests/ORM/Query/QueryTest.php` (+2 -0) </details> ### 📄 Description The getHint method would return false if no hint was set for the given name. Therefore even if you set the CountWalker::HINT_DISTINCT to false, it would have been ignored and set to true by the paginator. --- <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:00:45 +01:00
admin closed this issue 2026-01-22 16:00:45 +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#8611