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.

47 lines
1.4 KiB

  1. doctrine:
  2. dbal:
  3. url: '%env(resolve:DATABASE_URL)%'
  4. mapping_types:
  5. enum: string
  6. # IMPORTANT: You MUST configure your server version,
  7. # either here or in the DATABASE_URL env var (see .env file)
  8. #server_version: '15'
  9. orm:
  10. auto_generate_proxy_classes: true
  11. enable_lazy_ghost_objects: true
  12. naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
  13. auto_mapping: true
  14. mappings:
  15. App:
  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. auto_generate_proxy_classes: false
  29. proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
  30. query_cache_driver:
  31. type: pool
  32. pool: doctrine.system_cache_pool
  33. result_cache_driver:
  34. type: pool
  35. pool: doctrine.result_cache_pool
  36. framework:
  37. cache:
  38. pools:
  39. doctrine.result_cache_pool:
  40. adapter: cache.app
  41. doctrine.system_cache_pool:
  42. adapter: cache.system