|
| 1 | +# Override : Change validate_xml_mapping to false @see https://github.com/Sylius/Sylius/issues/18304 |
| 2 | +parameters: |
| 3 | + # Adds a fallback DATABASE_URL if the env var is not set. |
| 4 | + # This allows you to run cache:warmup even if your |
| 5 | + # environment variables are not available yet. |
| 6 | + # You should not need to change this value. |
| 7 | + env(DATABASE_URL): '' |
| 8 | + |
| 9 | +doctrine: |
| 10 | + dbal: |
| 11 | + url: '%env(resolve:DATABASE_URL)%' |
| 12 | + |
| 13 | + # IMPORTANT: You MUST configure your server version, |
| 14 | + # either here or in the DATABASE_URL env var (see .env file) |
| 15 | + #server_version: '16' |
| 16 | + |
| 17 | + profiling_collect_backtrace: '%kernel.debug%' |
| 18 | + use_savepoints: true |
| 19 | + orm: |
| 20 | + auto_generate_proxy_classes: true |
| 21 | + enable_lazy_ghost_objects: true |
| 22 | + report_fields_where_declared: true |
| 23 | + validate_xml_mapping: false |
| 24 | + naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware |
| 25 | + identity_generation_preferences: |
| 26 | + Doctrine\DBAL\Platforms\PostgreSQLPlatform: identity |
| 27 | + auto_mapping: true |
| 28 | + mappings: |
| 29 | + App: |
| 30 | + type: attribute |
| 31 | + is_bundle: false |
| 32 | + dir: '%kernel.project_dir%/src/Entity' |
| 33 | + prefix: 'App\Entity' |
| 34 | + alias: App |
| 35 | + controller_resolver: |
| 36 | + auto_mapping: false |
| 37 | + |
| 38 | +when@prod: &doctrine_prod |
| 39 | + doctrine: |
| 40 | + orm: |
| 41 | + auto_generate_proxy_classes: false |
| 42 | + proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies' |
| 43 | + query_cache_driver: |
| 44 | + type: pool |
| 45 | + pool: doctrine.system_cache_pool |
| 46 | + result_cache_driver: |
| 47 | + type: pool |
| 48 | + pool: doctrine.result_cache_pool |
| 49 | + |
| 50 | + framework: |
| 51 | + cache: |
| 52 | + pools: |
| 53 | + doctrine.result_cache_pool: |
| 54 | + adapter: cache.app |
| 55 | + doctrine.system_cache_pool: |
| 56 | + adapter: cache.system |
| 57 | + |
| 58 | +when@test_cached: *doctrine_prod |
0 commit comments