mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-805: Support subqueries in DQL ORDER BY #991
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Sep 14, 2010).
Jira issue originally created by user mjh_ca:
It would be nice to be able to do something like:
At present it seems that subqueries are not supported in ORDER BY
@doctrinebot commented on GitHub (Sep 15, 2010):
Comment created by @beberlei:
yes, becaues not all vendors support it.
Please use your own Result Set Mappings and Native Query to query for the desired result:
http://www.doctrine-project.org/projects/orm/2.0/docs/reference/native-sql/en#native-sql
@doctrinebot commented on GitHub (Sep 15, 2010):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Sep 15, 2010):
Comment created by romanb:
hm. as a side note, correlated subqueries very often perform very badly when the tables get larger.