doctrine.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. dql:
  26. datetime_functions:
  27. DATE_FORMAT: DoctrineExtensions\Query\Mysql\DateFormat
  28. when@test:
  29. doctrine:
  30. dbal:
  31. # "TEST_TOKEN" is typically set by ParaTest
  32. dbname_suffix: '_test%env(default::TEST_TOKEN)%'
  33. when@prod:
  34. doctrine:
  35. orm:
  36. auto_generate_proxy_classes: false
  37. proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
  38. query_cache_driver:
  39. type: pool
  40. pool: doctrine.system_cache_pool
  41. result_cache_driver:
  42. type: pool
  43. pool: doctrine.result_cache_pool
  44. framework:
  45. cache:
  46. pools:
  47. doctrine.result_cache_pool:
  48. adapter: cache.app
  49. doctrine.system_cache_pool:
  50. adapter: cache.system