예제 #1
0
 public static function getPhpNameMap()
 {
     if (self::$phpNameMap === null) {
         $map = ProjectPeer::getTableMap();
         $columns = $map->getColumns();
         $nameMap = array();
         foreach ($columns as $column) {
             $nameMap[$column->getPhpName()] = $column->getColumnName();
         }
         self::$phpNameMap = $nameMap;
     }
     return self::$phpNameMap;
 }