]> Raphaƫl G. Git Repositories - blog/blob - config/packages/doctrine.yaml
Import config, packages and routes yaml files
[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 orm:
11 auto_generate_proxy_classes: true
12 enable_lazy_ghost_objects: true
13 report_fields_where_declared: true
14 validate_xml_mapping: true
15 naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
16 auto_mapping: true
17 mappings:
18 App:
19 type: attribute
20 is_bundle: false
21 dir: '%kernel.project_dir%/src/Entity'
22 prefix: 'App\Entity'
23 alias: App
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