[TYPO3-mvc] setordering on finder

Tim Schoch | GSTALTIG tim.schoch at gstaltig.ch
Tue Mar 27 13:34:50 CEST 2012


Hi Dawid
You can set the defaultOrderings that count for all repository methods:

  /**
  * default orderings
  * @var array
  */
  protected $defaultOrderings = array( 'name' => 'ASC' );


If you want a different ordering only for this findBy method I don't think there is an other way then writing the findBy method yourself.
Tim


More information about the TYPO3-project-typo3v4mvc mailing list