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