CrEOF\Spatial\DBAL\Platform\AbstractPlatform::getMappedDatabaseTypes PHP Method

getMappedDatabaseTypes() public method

Get an array of database types that map to this Doctrine type.
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);
    }