Muriel le Pair
2013-07-30 13:28:00 UTC
Hi,
I would like findAll() to order by they default_sortby set in the TCA,
but it doesn't work.
How are you expected to sort a query in extbase?
In ext_tables.php both sortby and default_sortby have been set to the
sorting field.
'sortby' => 'sorting',
'default_sortby' => 'ORDER BY sorting',
I would expect that findAll() would use this settings, but somehow they
are ignored.
I have been looking at
http://forge.typo3.org/projects/typo3v4-mvc/wiki/Default_Orderings_and_Query_Settings_in_Repository
and
http://api.typo3.org/extbase/current/TYPO3/CMS/Extbase/Persistence/Generic/class-Typo3QuerySettings.html
but the odd thing is that I can't find any options to order by.
So in good old plain mysql: SELECT * from mytable ORDER BY sorting asc.
--
kind regards,
Muriel le Pair
I would like findAll() to order by they default_sortby set in the TCA,
but it doesn't work.
How are you expected to sort a query in extbase?
In ext_tables.php both sortby and default_sortby have been set to the
sorting field.
'sortby' => 'sorting',
'default_sortby' => 'ORDER BY sorting',
I would expect that findAll() would use this settings, but somehow they
are ignored.
I have been looking at
http://forge.typo3.org/projects/typo3v4-mvc/wiki/Default_Orderings_and_Query_Settings_in_Repository
and
http://api.typo3.org/extbase/current/TYPO3/CMS/Extbase/Persistence/Generic/class-Typo3QuerySettings.html
but the odd thing is that I can't find any options to order by.
So in good old plain mysql: SELECT * from mytable ORDER BY sorting asc.
--
kind regards,
Muriel le Pair