Esempio n. 1
0
 public static function getPhpNameMap()
 {
     if (self::$phpNameMap === null) {
         $map = sfGuardUserPeer::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();
 }
Esempio n. 3
0
     * Returns an array of arrays that contain columns in each unique index.
     *
     * @return array
     */
    public static function getUniqueColumnNames()
    {
        return array(array('username'));
    }
    // 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('BasesfGuardUserPeer:%s:%1$s', 'Count' == $match[1] ? 'doCount' : $match[0]);
        }
        throw new LogicException(sprintf('Unrecognized function "%s"', $method));
    }
}
// BasesfGuardUserPeer
// This is the static code needed to register the TableMap for this table with the main Propel class.
//
BasesfGuardUserPeer::buildTableMap();