typeNotFound() public static method

public static typeNotFound ( string $name ) : MappingException
$name string
return MappingException
Example #1
0
 /**
  * Overrides an already defined type to use a different implementation.
  *
  * @static
  * @param string $name
  * @param string $className
  * @throws MappingException
  */
 public static function overrideType($name, $className)
 {
     if (!isset(self::$typesMap[$name])) {
         throw MappingException::typeNotFound($name);
     }
     self::$typesMap[$name] = $className;
 }