Doctrine\DBAL\DBALException::typeNotFound PHP Method

typeNotFound() public static method

public static typeNotFound ( string $name ) : DBALException
$name string
return DBALException
    public static function typeNotFound($name)
    {
        return new self('Type to be overwritten ' . $name . ' does not exist.');
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Register a doctrine type to be used in conjunction with a column type of this platform.
  *
  * @param string $dbType
  * @param string $doctrineType
  */
 public function registerDoctrineTypeMapping($dbType, $doctrineType)
 {
     if ($this->doctrineTypeMapping === null) {
         $this->initializeDoctrineTypeMappings();
     }
     if (!Types\Type::hasType($doctrineType)) {
         throw DBALException::typeNotFound($doctrineType);
     }
     $dbType = strtolower($dbType);
     $this->doctrineTypeMapping[$dbType] = $doctrineType;
 }
All Usage Examples Of Doctrine\DBAL\DBALException::typeNotFound