@Nima, I meant to define it in the association metadata as described quite well here: - http://doctrine-orm.readthedocs.org/en/latest/tutorials/ordered-associations.html - http://doctrine-orm.readthedocs.org/en/latest/reference/annotations-reference.html#annref-orderby
As soon as an Entity is loaded, this particular association would be ordered as requested. So no need to 'think' about it anymore as a developer, which can be useful in specific cases, which this was. have a nice weekend! On 11 April 2014 14:52, Nima Sadjadi <[email protected]> wrote: > Menno, > Do you mean somethibg like this? > find(...)->orderedBy(...) > Does this method work with find() too? > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
