memory

Play Memory
Log | Files | Refs

doctrine.yaml (1246B)


      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: '13'
      8     orm:
      9         auto_generate_proxy_classes: true
     10         naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
     11         auto_mapping: true
     12         mappings:
     13             App:
     14                 is_bundle: false
     15                 dir: '%kernel.project_dir%/src/Entity'
     16                 prefix: 'App\Entity'
     17                 alias: App
     18 
     19 when@test:
     20     doctrine:
     21         dbal:
     22             # "TEST_TOKEN" is typically set by ParaTest
     23             dbname_suffix: '_test%env(default::TEST_TOKEN)%'
     24 
     25 when@prod:
     26     doctrine:
     27         orm:
     28             auto_generate_proxy_classes: false
     29             query_cache_driver:
     30                 type: pool
     31                 pool: doctrine.system_cache_pool
     32             result_cache_driver:
     33                 type: pool
     34                 pool: doctrine.result_cache_pool
     35 
     36     framework:
     37         cache:
     38             pools:
     39                 doctrine.result_cache_pool:
     40                     adapter: cache.app
     41                 doctrine.system_cache_pool:
     42                     adapter: cache.system