/** * Adds a custom type to the type map. * * @param string $name Name of the type. This should correspond to what * getName() returns. * @param string $className The class name of the custom type. */ public static function addCustomType($name, $className) { if (isset(self::$_typesMap[$name])) { throw DoctrineException::typeExists($name); } self::$_typesMap[$name] = $className; }