doctrine.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. doctrine:
  2. dbal:
  3. server-version: 'mariadb-10.2.12'
  4. dbname: '%env(DATABASE_NAME)%'
  5. user: '%env(DATABASE_USER)%'
  6. password: '%env(DATABASE_PASSWORD)%'
  7. host: '%env(DATABASE_HOST)%'
  8. driver: 'pdo_mysql'
  9. charset: utf8mb4
  10. options:
  11. 1002: "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))"
  12. default_table_options:
  13. charset: utf8mb4
  14. collate: utf8mb4_unicode_ci
  15. row_format: DYNAMIC
  16. types:
  17. json: Doctrine\DBAL\Types\JsonType
  18. orm:
  19. auto_generate_proxy_classes: '%kernel.debug%'
  20. naming_strategy: doctrine.orm.naming_strategy.underscore
  21. auto_mapping: true
  22. mappings:
  23. SonataUserBundle: ~
  24. FOSUserBundle: ~
  25. # App:
  26. # is_bundle: false
  27. # type: annotation
  28. # dir: '%kernel.project_dir%/src/Entity'
  29. # prefix: 'App\Entity'
  30. # alias: App
  31. gedmo_translatable:
  32. type: annotation
  33. prefix: ChamiloCore\Entity\Translation
  34. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
  35. # dir: "%kernel.root_dir%/src/CoreBundle/Entity"
  36. alias: GedmoTranslatable # (optional) it will default to the name set for the mapping
  37. is_bundle: false
  38. gedmo_translator:
  39. type: annotation
  40. prefix: Gedmo\Translator\Entity
  41. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
  42. alias: GedmoTranslator # (optional) it will default to the name set for the mapping
  43. is_bundle: false
  44. gedmo_loggable:
  45. type: annotation
  46. prefix: Gedmo\Loggable\Entity
  47. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
  48. alias: GedmoLoggable # (optional) it will default to the name set for the mappingmapping
  49. is_bundle: false
  50. gedmo_tree:
  51. type: annotation
  52. prefix: Gedmo\Tree\Entity
  53. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
  54. alias: GedmoTree # (optional) it will default to the name set for the mapping
  55. is_bundle: false