예제 #1
0
 /**
  * Gets a map (hash) of PHP names to DB column names.
  *
  * @return     array The PHP to DB name map for this peer
  * @throws     PropelException Any exceptions caught during processing will be
  *		 rethrown wrapped into a PropelException.
  * @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
  */
 public static function getPhpNameMap()
 {
     if (self::$phpNameMap === null) {
         $map = ConfigurationPeer::getTableMap();
         $columns = $map->getColumns();
         $nameMap = array();
         foreach ($columns as $column) {
             $nameMap[$column->getPhpName()] = $column->getColumnName();
         }
         self::$phpNameMap = $nameMap;
     }
     return self::$phpNameMap;
 }