doctrine: dbal: default_connection: default connections: default: url: '%env(resolve:DATABASE_URL)%' # The legacy tables may share this database; keep them out of schema tooling. schema_filter: ~^(?!(ksiazki|pozycz|pozycz_historia)$)~ profiling_collect_backtrace: '%kernel.debug%' legacy: url: '%env(resolve:LEGACY_DATABASE_URL)%' orm: default_entity_manager: default entity_managers: default: connection: default validate_xml_mapping: true naming_strategy: doctrine.orm.naming_strategy.underscore identity_generation_preferences: Doctrine\DBAL\Platforms\PostgreSQLPlatform: identity auto_mapping: true mappings: App: type: attribute is_bundle: false dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' when@prod: doctrine: orm: entity_managers: default: 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