mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-195: Ordering of associations #242
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 (Dec 6, 2009).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user romanb:
It should be supported to set a default ordering for associations.
Example:
The value of the orderby mapping declaration should be a simple DQL snippet.
Main classes to adjust for this feature: SqlWalker, StandardEntityPersister and the metadata drivers, of course.
@doctrinebot commented on GitHub (Dec 6, 2009):
@doctrinebot commented on GitHub (Jan 31, 2010):
Comment created by @beberlei:
is @OrderBy("string") supported by our parser? I know its the JPA 2.0 equivalent, but imho:
My patch in DDC-293 uses fields instead of columns though.
Also does the SqlWalker need a change? Is it possible to reliably add the order by clauses when there is already an ORDER BY statement in the query?
@doctrinebot commented on GitHub (Feb 14, 2010):
Comment created by @beberlei:
The issue for @OrderBy(sql) is dependent on the DQL EBNF refactoring, its not possible to easily implement this without.
@doctrinebot commented on GitHub (Feb 20, 2010):
Comment created by @beberlei:
The mapping syntax will be changed in a future commit. Otherwise this is all implemented now.
@doctrinebot commented on GitHub (Feb 26, 2010):
Comment created by @beberlei:
This is now completely implemented and the API is finalized.
@doctrinebot commented on GitHub (Feb 26, 2010):
Issue was closed with resolution "Fixed"