public static function doSelect(Criteria $criteria, $con = null) { if (!count($criteria->getOrderByColumns())) { $criteria->addAscendingOrderByColumn(sfFaqFaqPeer::QUESTION); } return parent::doSelect($criteria, $con); }
public static function getPhpNameMap() { if (self::$phpNameMap === null) { $map = sfFaqFaqPeer::getTableMap(); $columns = $map->getColumns(); $nameMap = array(); foreach ($columns as $column) { $nameMap[$column->getPhpName()] = $column->getColumnName(); } self::$phpNameMap = $nameMap; } return self::$phpNameMap; }