public getMappedDatabaseTypes ( CrEOF\Spatial\DBAL\Types\AbstractSpatialType $type ) : string[] | ||
$type | CrEOF\Spatial\DBAL\Types\AbstractSpatialType | |
return | string[] |
public function getMappedDatabaseTypes(AbstractSpatialType $type)
{
$sqlType = strtolower($type->getSQLType());
if ($type instanceof GeographyType && $sqlType !== 'geography') {
$sqlType = sprintf('geography(%s)', $sqlType);
}
return array($sqlType);
}