doctrine.yaml 885 B

123456789101112131415161718192021222324252627
  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. mappings:
  20. App:
  21. is_bundle: false
  22. type: annotation
  23. dir: '%kernel.project_dir%/src/Entity'
  24. prefix: 'App\Entity'
  25. alias: App