[PR #830] [MERGED] [DDC-2764] Prefix criteria orderBy with rootAlias #8765

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/830
Author: @sandermarechal
Created: 10/29/2013
Status: Merged
Merged: 1/2/2014
Merged by: @beberlei

Base: masterHead: sort-alias


📝 Commits (3)

  • b6f8d53 [DDC-2764] Prefix criteria orderBy with rootAlias
  • 202039e Set rootAlias outside loop
  • 35a62e9 Add rootAlias to Criteria where clauses

📊 Changes

4 files changed (+51 additions, -29 deletions)

View changed files

📝 lib/Doctrine/ORM/Query/QueryExpressionVisitor.php (+18 -10)
📝 lib/Doctrine/ORM/QueryBuilder.php (+3 -2)
📝 tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php (+14 -14)
📝 tests/Doctrine/Tests/ORM/QueryBuilderTest.php (+16 -3)

📄 Description

This fixes DDC-2764 by prefixing the QueryBuilder rootAlias to sortBy criteria.


🔄 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/830 **Author:** [@sandermarechal](https://github.com/sandermarechal) **Created:** 10/29/2013 **Status:** ✅ Merged **Merged:** 1/2/2014 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `sort-alias` --- ### 📝 Commits (3) - [`b6f8d53`](https://github.com/doctrine/orm/commit/b6f8d53ff1ed0b113d7faba728e7142734d3caba) [DDC-2764] Prefix criteria orderBy with rootAlias - [`202039e`](https://github.com/doctrine/orm/commit/202039e8530368f618a4b3e9978cc5ff42aed4d0) Set rootAlias outside loop - [`35a62e9`](https://github.com/doctrine/orm/commit/35a62e9a05a85ab7b2df5a5bee7b63a517dd76df) Add rootAlias to Criteria where clauses ### 📊 Changes **4 files changed** (+51 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Query/QueryExpressionVisitor.php` (+18 -10) 📝 `lib/Doctrine/ORM/QueryBuilder.php` (+3 -2) 📝 `tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php` (+14 -14) 📝 `tests/Doctrine/Tests/ORM/QueryBuilderTest.php` (+16 -3) </details> ### 📄 Description This fixes DDC-2764 by prefixing the QueryBuilder rootAlias to sortBy criteria. --- <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:37 +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#8765