doctrine.yaml 826 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. driver: pdo_pgsql
  10. charset: utf-8
  11. server_version: 9.3
  12. url: '%env(resolve:DATABASE_URL)%'
  13. types:
  14. inet: App\DBAL\Type\InetType
  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