]> Raphaƫl G. Git Repositories - blog/blob - config/packages/doctrine.yaml
Update doctrine bundle recipe
[blog] / config / packages / doctrine.yaml
1 doctrine:
2 dbal:
3 url: '%env(resolve:DATABASE_URL)%'
4
5 # IMPORTANT: You MUST configure your server version,
6 # either here or in the DATABASE_URL env var (see .env file)
7 #server_version: '16'
8
9 profiling_collect_backtrace: '%kernel.debug%'
10 use_savepoints: true
11 orm:
12 auto_generate_proxy_classes: true
13 enable_lazy_ghost_objects: true
14 report_fields_where_declared: true
15 validate_xml_mapping: true
16 naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
17 auto_mapping: true
18
19 when@test:
20 doctrine:
21 dbal:
22 # "TEST_TOKEN" is typically set by ParaTest
23 dbname_suffix: '_test%env(default::TEST_TOKEN)%'
24
25 when@prod:
26 doctrine:
27 orm:
28 auto_generate_proxy_classes: false
29 proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
30 query_cache_driver:
31 type: pool
32 pool: doctrine.system_cache_pool
33 result_cache_driver:
34 type: pool
35 pool: doctrine.result_cache_pool
36
37 framework:
38 cache:
39 pools:
40 doctrine.result_cache_pool:
41 adapter: cache.app
42 doctrine.system_cache_pool:
43 adapter: cache.system