Doctrine_Core::getTable()->findAll() how to specify order? Doctrine_Core::getTable()->findAll() how to specify order? php php

Doctrine_Core::getTable()->findAll() how to specify order?


You can also leave the first array blank

  $em->getRepository('BackendDestinyBundle:Destiny')->findBy(array(), array('title'=>'asc'));


You can in fact specify a default order by in your schema:

Foo:  columns:    ...  options:    orderBy: bar DESC

Note that when you want to specify a different order, you can still create a query and override the default order by.


According to Jon Wage you should create a Query in this Caseā€¦ Found in the mailing-list