[PR #722] [CLOSED] Support for order by association (for 2.3 branch) #8607

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/722
Author: @stollr
Created: 7/15/2013
Status: Closed

Base: 2.3Head: orderby_association_2.3


📝 Commits (1)

  • 881963b Support for order by association when using findBy (for 2.3 branch)

📊 Changes

1 file changed (+30 additions, -10 deletions)

View changed files

📝 lib/Doctrine/ORM/Persisters/BasicEntityPersister.php (+30 -10)

📄 Description

I need to @OrderBy an association, which does not work in 2.3 but I found the pull request https://github.com/doctrine/doctrine2/pull/549 by @FabioBatSilva who has implemented this in branch 2.4.

I have copied the code, adjusted it for 2.3 and tested it in a real life application ;-)

The original pull request is related to Doctrine Issue #2241.
The ordering of associations has been implemented in Doctrine Issue #195.

Please integrate this into 2.3 because 2.4 is not stable until now and thus it is not usable for many people.


🔄 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/722 **Author:** [@stollr](https://github.com/stollr) **Created:** 7/15/2013 **Status:** ❌ Closed **Base:** `2.3` ← **Head:** `orderby_association_2.3` --- ### 📝 Commits (1) - [`881963b`](https://github.com/doctrine/orm/commit/881963be08a315d3bcf60d420c8f28cbbec07960) Support for order by association when using findBy (for 2.3 branch) ### 📊 Changes **1 file changed** (+30 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Persisters/BasicEntityPersister.php` (+30 -10) </details> ### 📄 Description I need to `@OrderBy` an association, which does not work in `2.3` but I found the pull request https://github.com/doctrine/doctrine2/pull/549 by @FabioBatSilva who has implemented this in branch `2.4`. I have copied the code, adjusted it for `2.3` and tested it in a real life application ;-) The original pull request is related to [Doctrine Issue #2241](http://www.doctrine-project.org/jira/browse/DDC-2241). The ordering of associations has been implemented in [Doctrine Issue #195](http://www.doctrine-project.org/jira/browse/DDC-195). Please integrate this into `2.3` because `2.4` is not stable until now and thus it is not usable for many people. --- <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:44 +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#8607