示例#1
0
 public static function doSelect(Criteria $criteria, $con = null)
 {
     if (!count($criteria->getOrderByColumns())) {
         $criteria->addAscendingOrderByColumn(sfFaqFaqPeer::QUESTION);
     }
     return parent::doSelect($criteria, $con);
 }
示例#2
0
 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;
 }