[TYPO3-mvc] Ordering ignored

Stefano Cecere scecere at krur.com
Fri Mar 1 06:20:24 CET 2013


On 28/02/13 21:41, Philipp wrote:
> Hey
>
> In one model (called event) i have a property called irregularOccasions.
> It is an objectStorage filled with Models... Those are defined @lazy.
>
> If i need only a few of those occasions (because i only need to display
> ~5 on one page, but the model has about ~200) i have two BIIIIIIIG
> Problems.
>
> 1st) No Ordering.
> In the repository of the Model IrregularOccasion i have set the ordering
> to dateFrom ASC
> protected $defaultOrderings = array('dateFrom' =>
> \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING);
> -> this is ignored, i simply get completely shitty results

i solved this "problem" ordering the children by Fluid (but i'm still at 
4.7.. you should check with 6.0 or 6.1)


-- --- ----- -------

Stefano Cecere
KRUR studio - http://krur.com


More information about the TYPO3-project-typo3v4mvc mailing list