]> Raphaƫl G. Git Repositories - airlibre/blob - config/packages/doctrine.yaml
Readd config packages translation yaml file
[airlibre] / 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
12 # only needed for MySQL
13 charset: 'utf8mb4'
14 default_table_options:
15 collate: 'utf8mb4_unicode_ci'
16
17 orm:
18 auto_generate_proxy_classes: true
19 enable_lazy_ghost_objects: true
20 report_fields_where_declared: true
21 validate_xml_mapping: true
22 naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
23 auto_mapping: true
24
25 when@test:
26 doctrine:
27 dbal:
28 # "TEST_TOKEN" is typically set by ParaTest
29 dbname_suffix: '_test%env(default::TEST_TOKEN)%'
30
31 when@prod:
32 doctrine:
33 orm:
34 auto_generate_proxy_classes: false
35 proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
36 query_cache_driver:
37 type: pool
38 pool: doctrine.system_cache_pool
39 result_cache_driver:
40 type: pool
41 pool: doctrine.result_cache_pool
42
43 framework:
44 cache:
45 pools:
46 doctrine.result_cache_pool:
47 adapter: cache.app
48 doctrine.system_cache_pool:
49 adapter: cache.system