Updated doctrine recipes.

This commit is contained in:
Jan Böhmer 2020-01-07 18:48:34 +01:00
parent 6388c92afc
commit 64cf8097bc
4 changed files with 19 additions and 41 deletions

View file

@ -1,23 +1,11 @@
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
# Doctrine should be able to detect these settings automatically, so just override them if you getting errors.
#driver: 'pdo_mysql'
#server_version: '5.6'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '5.7'
types:
datetime:
class: App\Helpers\UTCDateTimeType