Adapt doctrine config to DoctrineBundle 3 and add Redis env defaults

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
julielenaertsandClaude Opus 5.5 committed 2026-11-23 14:39:11 +01:00
1 parent 2a0f079597
commit 54e6068af8
2 files changed
+8 -4

No files matched your search

+4 -4
View File
@@ -5,10 +5,12 @@ doctrine:
# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '16'
use_savepoints: true
profiling_collect_backtrace: '%kernel.debug%'
orm:
auto_generate_proxy_classes: true
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.default
identity_generation_preferences:
Doctrine\DBAL\Platforms\PostgreSQLPlatform: sequence
auto_mapping: true
mappings:
App:
@@ -26,8 +28,6 @@ when@test:
when@prod:
doctrine:
orm:
auto_generate_proxy_classes: false
proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
query_cache_driver:
type: pool
pool: doctrine.system_cache_pool