doctrine.yaml 1.5 KB

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