[backend] stabilise codebase

This commit is contained in:
2025-10-11 20:09:05 +02:00
parent 2886fa9f0c
commit 1e812c93a6
36 changed files with 487 additions and 212 deletions
+3 -4
View File
@@ -1,13 +1,12 @@
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '16'
server_version: '16'
profiling_collect_backtrace: '%kernel.debug%'
use_savepoints: true
mapping_types:
geography: string
orm:
auto_generate_proxy_classes: true
enable_lazy_ghost_objects: true
@@ -0,0 +1,16 @@
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'
geography: 'Jsor\Doctrine\PostGIS\Types\GeographyType'
orm:
dql:
string_functions:
ST_AsGeoJSON: 'Jsor\Doctrine\PostGIS\Functions\ST_AsGeoJSON'
ST_GeomFromGeoJSON: 'Jsor\Doctrine\PostGIS\Functions\ST_GeomFromGeoJSON'