parameters: # Adds a fallback DATABASE_URL if the env var is not set. # This allows you to run cache:warmup even if your # environment variables are not available yet. # You should not need to change this value. env(DATABASE_URL): '' doctrine: dbal: # configure these for your database server driver: 'pdo_mysql' server_version: '5.7.40' charset: utf8mb4 types: app_config: App\DBALType\ConfigurationDBALType # With Symfony 3.3, remove the `resolve:` prefix url: '%env(resolve:DATABASE_URL)%' mapping_types: enum: string orm: auto_generate_proxy_classes: '%kernel.debug%' naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware enable_lazy_ghost_objects: true auto_mapping: true report_fields_where_declared: true mappings: App: is_bundle: false type: attribute dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' alias: App dql: string_functions: concat_ws: DoctrineExtensions\Query\Mysql\ConcatWs group_concat: DoctrineExtensions\Query\Mysql\GroupConcat replace: DoctrineExtensions\Query\Mysql\Replace cast: DoctrineExtensions\Query\Mysql\Cast when@prod: doctrine: orm: auto_generate_proxy_classes: false proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies' query_cache_driver: type: pool pool: doctrine.system_cache_pool result_cache_driver: type: pool pool: doctrine.result_cache_pool framework: cache: pools: doctrine.result_cache_pool: adapter: cache.app doctrine.system_cache_pool: adapter: cache.system