public static function overrideType($name, $className)
    {
        if ( ! isset(self::$_typesMap[$name])) {
            throw TypeException::typeNotFound($name);
        }

        self::$_typesMap[$name] = $className;
    }
public static function overrideType($name, $className)
    {
        if ( ! isset(self::$_typesMap[$name])) {
            throw TypeException::typeNotFound($name);
        }

        self::$_typesMap[$name] = $className;
    }
public static function overrideType ( $ name , $ className ) { if ( ! isset ( self :: $ _typesMap [ $ name ] ) ) { throw TypeException :: typeNotFound ( $ name ) ; } self :: $ _typesMap [ $ name ] = $ className ; }
Overrides an already defined type to use a different implementation.

@static
@param string $name
@param string $className
@throws \Doctrine\ODM\CouchDB\CouchDBException
Overrides an already defined type to use a different implementation .