]> Raphaƫl G. Git Repositories - airlibre/blob - config/packages/doctrine.yaml
307f988dbfbc7692d2eff2cb94ac360e9193bc6a
[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 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 # mappings:
19 # App:
20 # type: attribute
21 # is_bundle: false
22 # dir: '%kernel.project_dir%/src/Entity'
23 # prefix: 'App\Entity'
24 # alias: App
25
26 when@test:
27 doctrine:
28 dbal:
29 # "TEST_TOKEN" is typically set by ParaTest
30 dbname_suffix: '_test%env(default::TEST_TOKEN)%'
31
32 when@prod:
33 doctrine:
34 orm:
35 auto_generate_proxy_classes: false
36 proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
37 query_cache_driver:
38 type: pool
39 pool: doctrine.system_cache_pool
40 result_cache_driver:
41 type: pool
42 pool: doctrine.result_cache_pool
43
44 framework:
45 cache:
46 pools:
47 doctrine.result_cache_pool:
48 adapter: cache.app
49 doctrine.system_cache_pool:
50 adapter: cache.system