doctrine.yaml 1.3 KB

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