doctrine.yaml 1.5 KB

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