/**
  * 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 = ProfilePeer::getTableMap();
         $columns = $map->getColumns();
         $nameMap = array();
         foreach ($columns as $column) {
             $nameMap[$column->getPhpName()] = $column->getColumnName();
         }
         self::$phpNameMap = $nameMap;
     }
     return self::$phpNameMap;
 }
Example #2
0
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     self::$instances = array();
 }