public static function setConfiguration($c)
    {
        if (is_array($c)) {
            if (isset($c['propel']) && is_array($c['propel'])) {
                $c = $c['propel'];
            }
            $c = new PropelConfiguration($c);
        }
        self::$configuration = $c;
    }