From 62c447cf751a431ba4ccbf5ee556cdc04af7f734 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <5764721+Saphyel@users.noreply.github.com> Date: Mon, 27 Jul 2020 16:32:48 +0100 Subject: [PATCH] Create jsor_doctrine_postgis.yaml --- .../config/packages/jsor_doctrine_postgis.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 jsor/doctrine-postgis/1.7/config/packages/jsor_doctrine_postgis.yaml diff --git a/jsor/doctrine-postgis/1.7/config/packages/jsor_doctrine_postgis.yaml b/jsor/doctrine-postgis/1.7/config/packages/jsor_doctrine_postgis.yaml new file mode 100644 index 00000000..8b50a69c --- /dev/null +++ b/jsor/doctrine-postgis/1.7/config/packages/jsor_doctrine_postgis.yaml @@ -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'