doctrine.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. parameters:
  2. # Adds a fallback DATABASE_URL if the env var is not set.
  3. # This allows you to run cache:warmup even if your
  4. # environment variables are not available yet.
  5. # You should not need to change this value.
  6. env(DATABASE_URL): ''
  7. doctrine:
  8. dbal:
  9. # configure these for your database server
  10. driver: 'pdo_mysql'
  11. server_version: '5.7'
  12. charset: utf8mb4
  13. # With Symfony 3.3, remove the `resolve:` prefix
  14. url: '%env(resolve:DATABASE_URL)%'
  15. orm:
  16. auto_generate_proxy_classes: '%kernel.debug%'
  17. naming_strategy: doctrine.orm.naming_strategy.underscore
  18. auto_mapping: true
  19. # filters:
  20. # softdeleteable:
  21. # class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
  22. # enabled: true
  23. mappings:
  24. App:
  25. is_bundle: false
  26. type: annotation
  27. dir: '%kernel.project_dir%/src/Entity'
  28. prefix: 'App\Entity'
  29. alias: App
  30. gedmo_translatable:
  31. type: annotation
  32. prefix: Gedmo\Translatable\Entity
  33. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
  34. alias: GedmoTranslatable # (optional) it will default to the name set for the mapping
  35. is_bundle: false
  36. gedmo_translator:
  37. type: annotation
  38. prefix: Gedmo\Translator\Entity
  39. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
  40. alias: GedmoTranslator # (optional) it will default to the name set for the mapping
  41. is_bundle: false
  42. gedmo_loggable:
  43. type: annotation
  44. prefix: Gedmo\Loggable\Entity
  45. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
  46. alias: GedmoLoggable # (optional) it will default to the name set for the mapping
  47. is_bundle: false
  48. gedmo_tree:
  49. type: annotation
  50. prefix: Gedmo\Tree\Entity
  51. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
  52. alias: GedmoTree # (optional) it will default to the name set for the mapping
  53. is_bundle: false