Ejemplo n.º 1
0
 public static function getPhpNameMap()
 {
     if (self::$phpNameMap === null) {
         $map = sfGuardUserGroupPeer::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();
 }
Ejemplo n.º 3
0
     * Returns an array of arrays that contain columns in each unique index.
     *
     * @return array
     */
    public static function getUniqueColumnNames()
    {
        return array();
    }
    // symfony_behaviors behavior
    /**
     * Returns the name of the hook to call from inside the supplied method.
     *
     * @param string $method The calling method
     *
     * @return string A hook name for {@link sfMixer}
     *
     * @throws LogicException If the method name is not recognized
     */
    private static function getMixerPreSelectHook($method)
    {
        if (preg_match('/^do(Select|Count)(Join(All(Except)?)?|Stmt)?/', $method, $match)) {
            return sprintf('BasesfGuardUserGroupPeer:%s:%1$s', 'Count' == $match[1] ? 'doCount' : $match[0]);
        }
        throw new LogicException(sprintf('Unrecognized function "%s"', $method));
    }
}
// BasesfGuardUserGroupPeer
// This is the static code needed to register the TableMap for this table with the main Propel class.
//
BasesfGuardUserGroupPeer::buildTableMap();