[TYPO3-mvc] sort order of related objects?
Thomas "Thasmo" Deinhamer
thasmo at gmail.com
Thu May 27 09:41:35 CEST 2010
Hoi,
the main problem which I come over and over again is fetching objects
via conditions like 'limit' and 'sort' for nearly all methods of a
repository. For pagination you need to set a limit (start, limit) and
often sort order depends on the project's purpose; meaning the one and
same extension needs to sort objects different for different projects.
What goes hand in hand with 'limit' and 'sort' is often the requirement
to fetch objects filtered by different properties. Thus it happens often
that you end up with repository methods with a lot of parameters.
The question now is, if there may be a nice and easy to use solution for
setting 'limit', 'sort' and custom filters for repositories. A
global/general API for this would come handy imho, but I have no idea
how to implement this effectively for easy usage.
Thomas
Am 27.05.2010 02:45, schrieb Felix Oertel:
> Hey
>
> On 2010-05-26 15:31:38 +0200, Andreas Ofner said:
>> configuration with annotations like @orderBY "sorting ASC"
>> would be nice.
>
> SQL in an annotation - uaaah ... ;-)
>
> i think we have to come up with a solution solving the default_sortby
> issue ...
>
> regards, foertel
>
More information about the TYPO3-project-typo3v4mvc
mailing list