public static unableToMapType ( |
||
$type | ||
리턴 |
public static function unableToMapType(Type $type) : DoctrineStorageException
{
return new static(sprintf('Unable to map type schema "%s" to doctrine field type', (string) $type));
}
/** * @param string $schema * @param Table $table * @param string $name * @param FieldDefinition $definition * * @throws DoctrineStorageException */ public function map(string $schema, Table $table, string $name, FieldDefinition $definition) { foreach ($this->mapping as $mapping) { if ($mapping->maps($definition->type())) { $mapping->map($schema, $table, $name, $definition); return; } } throw DoctrineStorageException::unableToMapType($definition->type()); }