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