Create jsor_doctrine_postgis.yaml

This commit is contained in:
Carlos Jimenez
2020-07-27 16:32:48 +01:00
committed by GitHub
parent 665c605358
commit 62c447cf75

View File

@@ -0,0 +1,15 @@
services:
Jsor\Doctrine\PostGIS\Event\ORMSchemaEventSubscriber:
tags: [{ name: doctrine.event_subscriber, connection: default }]
doctrine:
dbal:
mapping_types:
_text: string
types:
geometry: 'Jsor\Doctrine\PostGIS\Types\GeometryType'
orm:
dql:
string_functions:
ST_AsGeoJSON: 'Jsor\Doctrine\PostGIS\Functions\ST_AsGeoJSON'
ST_GeomFromGeoJSON: 'Jsor\Doctrine\PostGIS\Functions\ST_GeomFromGeoJSON'