ltbxd-actorle/config/packages/doctrine.yaml

58 lines
1.6 KiB
YAML
Raw Normal View History

2026-01-13 12:58:53 +00:00
doctrine:
dbal:
2026-01-13 23:54:49 +00:00
driver: pdo_pgsql
2026-01-15 12:16:09 +00:00
host: '%postgres_host%'
port: '%postgres_port%'
dbname: '%postgres_db%'
user: '%postgres_user%'
password: '%postgres_password%'
server_version: '%postgres_version%'
2026-01-13 23:54:49 +00:00
charset: utf8
2026-01-13 12:58:53 +00:00
# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '16'
profiling_collect_backtrace: '%kernel.debug%'
orm:
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
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'
alias: App
controller_resolver:
auto_mapping: false
2026-01-31 15:17:24 +00:00
dql:
numeric_functions:
Random: App\Doctrine\Extension\Random
2026-01-13 12:58:53 +00:00
when@test:
doctrine:
dbal:
dbname: app_test
2026-01-13 12:58:53 +00:00
when@prod:
doctrine:
orm:
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