You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6 KiB

2 months ago
  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. controller_resolver:
  24. auto_mapping: false
  25. when@test:
  26. doctrine:
  27. dbal:
  28. # "TEST_TOKEN" is typically set by ParaTest
  29. dbname_suffix: '_test%env(default::TEST_TOKEN)%'
  30. when@prod:
  31. doctrine:
  32. orm:
  33. auto_generate_proxy_classes: false
  34. proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
  35. query_cache_driver:
  36. type: pool
  37. pool: doctrine.system_cache_pool
  38. result_cache_driver:
  39. type: pool
  40. pool: doctrine.result_cache_pool
  41. framework:
  42. cache:
  43. pools:
  44. doctrine.result_cache_pool:
  45. adapter: cache.app
  46. doctrine.system_cache_pool:
  47. adapter: cache.system