doctrine.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. doctrine:
  2. dbal:
  3. url: '%env(resolve:DATABASE_URL)%'
  4. # IMPORTANT: You MUST configure your server version,
  5. # either here or in the DATABASE_URL env var (see .env file)
  6. #server_version: '16'
  7. profiling_collect_backtrace: '%kernel.debug%'
  8. orm:
  9. validate_xml_mapping: true
  10. naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
  11. auto_mapping: true
  12. mappings:
  13. App:
  14. type: attribute
  15. is_bundle: false
  16. dir: '%kernel.project_dir%/src/Entity'
  17. prefix: 'App\Entity'
  18. alias: App
  19. when@test:
  20. doctrine:
  21. dbal:
  22. # "TEST_TOKEN" is typically set by ParaTest
  23. dbname_suffix: '_test%env(default::TEST_TOKEN)%'
  24. when@prod:
  25. doctrine:
  26. orm:
  27. query_cache_driver:
  28. type: pool
  29. pool: doctrine.system_cache_pool
  30. result_cache_driver:
  31. type: pool
  32. pool: doctrine.result_cache_pool
  33. framework:
  34. cache:
  35. pools:
  36. doctrine.result_cache_pool:
  37. adapter: cache.app
  38. doctrine.system_cache_pool:
  39. adapter: cache.system