2019-02-23 16:49:38 +01:00
|
|
|
doctrine:
|
|
|
|
dbal:
|
2020-01-07 18:48:34 +01:00
|
|
|
url: '%env(resolve:DATABASE_URL)%'
|
2019-11-23 18:01:45 +01:00
|
|
|
|
2023-12-03 23:58:19 +01:00
|
|
|
# Required for DAMA doctrine test bundle
|
|
|
|
use_savepoints: true
|
|
|
|
|
2020-01-07 18:48:34 +01:00
|
|
|
# IMPORTANT: You MUST configure your server version,
|
|
|
|
# either here or in the DATABASE_URL env var (see .env file)
|
2019-02-23 16:49:38 +01:00
|
|
|
|
2019-09-12 22:16:33 +02:00
|
|
|
types:
|
2024-06-22 17:36:54 +02:00
|
|
|
# UTC datetimes
|
2019-09-17 14:02:30 +02:00
|
|
|
datetime:
|
2022-12-31 18:42:56 +01:00
|
|
|
class: App\Doctrine\Types\UTCDateTimeType
|
2019-09-17 14:02:30 +02:00
|
|
|
date:
|
2022-12-31 18:42:56 +01:00
|
|
|
class: App\Doctrine\Types\UTCDateTimeType
|
2024-06-22 17:36:54 +02:00
|
|
|
|
|
|
|
datetime_immutable:
|
|
|
|
class: App\Doctrine\Types\UTCDateTimeImmutableType
|
|
|
|
date_immutable:
|
|
|
|
class: App\Doctrine\Types\UTCDateTimeImmutableType
|
|
|
|
|
2020-05-18 22:07:09 +02:00
|
|
|
big_decimal:
|
2022-12-31 18:42:56 +01:00
|
|
|
class: App\Doctrine\Types\BigDecimalType
|
2023-04-09 00:04:13 +02:00
|
|
|
tinyint:
|
|
|
|
class: App\Doctrine\Types\TinyIntType
|
2024-06-10 21:11:11 +02:00
|
|
|
|
|
|
|
# This was removed in doctrine/orm 4.0 but we need it for the WebauthnKey entity
|
|
|
|
array:
|
|
|
|
class: App\Doctrine\Types\ArrayType
|
2022-10-31 21:13:27 +01:00
|
|
|
|
2020-01-26 20:27:37 +01:00
|
|
|
schema_filter: ~^(?!internal)~
|
2022-03-06 14:54:08 +01:00
|
|
|
# Only enable this when needed
|
|
|
|
profiling_collect_backtrace: false
|
2019-08-02 16:19:15 +02:00
|
|
|
|
2019-02-23 16:49:38 +01:00
|
|
|
orm:
|
|
|
|
auto_generate_proxy_classes: true
|
2023-05-27 20:51:05 +02:00
|
|
|
enable_lazy_ghost_objects: true
|
2023-06-11 13:49:21 +02:00
|
|
|
report_fields_where_declared: true
|
|
|
|
validate_xml_mapping: true
|
2019-11-23 17:48:24 +01:00
|
|
|
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
|
2019-02-23 16:49:38 +01:00
|
|
|
auto_mapping: true
|
2024-06-19 23:47:38 +02:00
|
|
|
controller_resolver:
|
|
|
|
auto_mapping: true
|
2019-02-23 16:49:38 +01:00
|
|
|
mappings:
|
|
|
|
App:
|
2023-05-28 01:55:30 +02:00
|
|
|
type: attribute
|
2023-12-03 22:44:55 +01:00
|
|
|
is_bundle: false
|
2019-02-23 16:49:38 +01:00
|
|
|
dir: '%kernel.project_dir%/src/Entity'
|
|
|
|
prefix: 'App\Entity'
|
|
|
|
alias: App
|
2020-03-08 13:05:53 +01:00
|
|
|
|
|
|
|
dql:
|
|
|
|
string_functions:
|
2024-06-13 23:18:25 +02:00
|
|
|
regexp: App\Doctrine\Functions\Regexp
|
2023-07-29 16:42:27 +02:00
|
|
|
field: DoctrineExtensions\Query\Mysql\Field
|
|
|
|
field2: App\Doctrine\Functions\Field2
|
2024-06-17 21:38:16 +02:00
|
|
|
natsort: App\Doctrine\Functions\Natsort
|
2024-06-17 23:13:04 +02:00
|
|
|
array_position: App\Doctrine\Functions\ArrayPosition
|
2023-02-11 22:27:51 +01:00
|
|
|
|
|
|
|
when@test:
|
|
|
|
doctrine:
|
|
|
|
dbal:
|
|
|
|
# "TEST_TOKEN" is typically set by ParaTest
|
|
|
|
dbname_suffix: '_test%env(default::TEST_TOKEN)%'
|
|
|
|
|
|
|
|
when@prod: &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
|
|
|
|
|
|
|
|
when@docker: *prod
|