Doctrine\ODM\MongoDB\Mapping\Types\Type::overrideType PHP Method

overrideType() public static method

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

        self::$typesMap[$name] = $className;
    }