コード例 #1
0
ファイル: BaseCollectionPeer.php プロジェクト: EQ4/smint
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     self::$instances = array();
 }
コード例 #2
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 = CollectionPeer::getTableMap();
         $columns = $map->getColumns();
         $nameMap = array();
         foreach ($columns as $column) {
             $nameMap[$column->getPhpName()] = $column->getColumnName();
         }
         self::$phpNameMap = $nameMap;
     }
     return self::$phpNameMap;
 }