0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-05-10 11:50:46 +00:00
kevinpapst_kimai2/config/packages/doctrine.yaml

73 lines
2.5 KiB
YAML
Raw Normal View History

2018-01-12 20:39:07 +01:00
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:
2019-04-08 18:38:56 +02:00
default_connection: default
connections:
default:
# existing migrations will fail if the schema filter is activated
#schema_filter: ~^(?!(bundle_migration_|kimai2_sessions))~
2021-03-08 16:06:22 +01:00
url: '%env(DATABASE_URL)%'
2019-04-08 18:38:56 +02:00
driver: 'pdo_mysql'
charset: utf8mb4
default_table_options:
charset: utf8mb4
2024-02-02 15:48:11 +01:00
collation: utf8mb4_unicode_ci
schema_manager_factory: doctrine.dbal.default_schema_manager_factory
types:
datetime: App\Doctrine\UTCDateTimeType
2024-05-01 14:24:24 +02:00
datetime_immutable: App\Doctrine\UTCDateTimeImmutableType
2018-01-12 20:39:07 +01:00
orm:
2024-04-12 19:03:09 +02:00
controller_resolver:
2024-10-03 10:34:20 +02:00
# FIXME this is causing a deprecation and needs to be changed
# auto_mapping: false
2024-04-12 19:03:09 +02:00
auto_mapping: true
2018-01-12 20:39:07 +01:00
auto_generate_proxy_classes: '%kernel.debug%'
2019-04-08 18:38:56 +02:00
default_entity_manager: default
enable_lazy_ghost_objects: true
2019-04-08 18:38:56 +02:00
entity_managers:
default:
report_fields_where_declared: true
2019-04-08 18:38:56 +02:00
connection: default
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
2019-04-08 18:38:56 +02:00
auto_mapping: true
mappings:
App:
type: attribute
2019-04-08 18:38:56 +02:00
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: Kimai
2021-03-08 16:06:22 +01:00
dql:
datetime_functions:
date: App\Doctrine\Extensions\Date
day: App\Doctrine\Extensions\Day
month: App\Doctrine\Extensions\Month
year: App\Doctrine\Extensions\Year
2021-03-08 16:06:22 +01:00
when@test:
doctrine:
dbal:
2024-02-02 13:52:24 +01:00
connections:
default:
logging: false
use_savepoints: true
2021-03-08 16:06:22 +01:00
when@prod:
doctrine:
orm:
metadata_cache_driver:
type: pool
pool: doctrine.system_cache_pool
query_cache_driver:
type: pool
pool: doctrine.system_cache_pool
result_cache_driver:
type: pool
pool: doctrine.result_cache_pool