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