[TYPO3-mvc] defaultOrderings on ChildObjects

Thomas Mammitzsch thomas at visualworx.de
Wed Jun 22 11:11:09 CEST 2011


Hi list,

i have a strange behaviour when child objects are loaded automatically 
by the parent object (because its a field of the parent object).
The child objects are not sorted as it should. In the child object 
repository i have the following:

      protected $defaultOrderings = array(
          'date_start' => 
Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING
      );

But its not sorted like that, its simply selected in the order the rows 
were created. Am i missing something? Shouldn't it work?

regards, Thomas


More information about the TYPO3-project-typo3v4mvc mailing list