[TYPO3-mvc] defaultOrderings on ChildObjects

Johannes C. Schulz - EnzephaloN IT-Solutions info at enzephalon.de
Wed Jun 22 11:20:25 CEST 2011



Hi Thomas

But the parent objects are sorted the right way?

In the past I had problems with sorting, based on an old version of extbase.
Since 1.3 it works fine.

Best regards
Johannes
 

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Thomas Mammitzsch
Gesendet: Mittwoch, 22. Juni 2011 11:11
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] defaultOrderings on ChildObjects

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
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc




More information about the TYPO3-project-typo3v4mvc mailing list