[TYPO3-mvc] ordering from TCA

Benjamin Mack benni at typo3.org
Thu May 13 23:03:31 CEST 2010


Hey,

that's how I do it (manually) currently in my repository classes:

/**
  * Returns all objects of this repository
  *
  * @return array An array of objects, empty if no objects found
  * @api
  */
public function findAll() {
	$query = $this->createQuery();
	$order = array('name' => 
Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING);
	$query->setOrderings($order);
	return $query->execute();
}



More information about the TYPO3-project-typo3v4mvc mailing list