magnetico-web/config/packages/doctrine.yaml

49 lines
1.8 KiB
YAML

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(APP_DATABASE_URL): ''
env(POSTGRES_VERSION): '10.10'
env(MAGNETICOD_DATABASE_URL): ''
doctrine:
dbal:
default_connection: default
connections:
default:
driver: 'pdo_pgsql'
url: '%env(resolve:APP_DATABASE_URL)%'
server_version: '%env(resolve:POSTGRES_VERSION)%'
magneticod:
driver: 'pdo_pgsql'
url: '%env(resolve:MAGNETICOD_DATABASE_URL)%'
server_version: '%env(resolve:POSTGRES_VERSION)%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
default_entity_manager: default
entity_managers:
default:
connection: default
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
magneticod:
connection: magneticod
mappings:
Magnetico:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Magnetico/Entity'
prefix: 'App\Magnetico'
alias: Magnetico
dql:
string_functions:
ILIKE: 'App\Doctrine\ORM\AST\Ilike'