[TYPO3-mvc] query->setOrderings: order by value list
Franz Koch
typo3.RemoveForMessage at elements-net.de
Tue Jul 5 11:04:18 CEST 2011
Hey,
> The customer is able to define a custom order of the entities in the
> backend.
>
> In my person repository I have a function findByUids expecting a comma
> separated list of uids (from the flexform value).
>
> Wouldn't it be nice to have the ability to call query->setOrderings with the
> provided list to define the ordering exactly as given in the backend?
shouldn't the objects automatically be selected in the order you defined
in the uid list? That's at least the case for me IIRC. Of course you
must take care to not apply default orderings you probably set for your
repository.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list