unknownColumnType() public static method

public static unknownColumnType ( string $name ) : DBALException
$name string
return DBALException
コード例 #1
0
ファイル: Type.php プロジェクト: BozzaCoon/SPHERE-Framework
 /**
  * Factory method to create type instances.
  * Type instances are implemented as flyweights.
  *
  * @param string $name The name of the type (as returned by getName()).
  *
  * @return \Doctrine\DBAL\Types\Type
  *
  * @throws \Doctrine\DBAL\DBALException
  */
 public static function getType($name)
 {
     if (!isset(self::$_typeObjects[$name])) {
         if (!isset(self::$_typesMap[$name])) {
             throw DBALException::unknownColumnType($name);
         }
         self::$_typeObjects[$name] = new self::$_typesMap[$name]();
     }
     return self::$_typeObjects[$name];
 }