]> Raphaƫl G. Git Repositories - airlibre/blob - config/packages/doctrine.yaml
Comment out doctrine orm mappings and controller resolver auto mapping
[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 # controller_resolver:
26 # auto_mapping: true
27
28 when@test:
29 doctrine:
30 dbal:
31 # "TEST_TOKEN" is typically set by ParaTest
32 dbname_suffix: '_test%env(default::TEST_TOKEN)%'
33
34 when@prod:
35 doctrine:
36 orm:
37 auto_generate_proxy_classes: false
38 proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
39 query_cache_driver:
40 type: pool
41 pool: doctrine.system_cache_pool
42 result_cache_driver:
43 type: pool
44 pool: doctrine.result_cache_pool
45
46 framework:
47 cache:
48 pools:
49 doctrine.result_cache_pool:
50 adapter: cache.app
51 doctrine.system_cache_pool:
52 adapter: cache.system