Пример #1
0
 public static function getPhpNameMap()
 {
     if (self::$phpNameMap === null) {
         $map = DidYouKnowPeer::getTableMap();
         $columns = $map->getColumns();
         $nameMap = array();
         foreach ($columns as $column) {
             $nameMap[$column->getPhpName()] = $column->getColumnName();
         }
         self::$phpNameMap = $nameMap;
     }
     return self::$phpNameMap;
 }