magnetico-web/config/packages/doctrine.yaml

49 lines
1.8 KiB
YAML
Raw Normal View History

2018-06-20 16:35:08 +00: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.
2018-06-23 20:19:01 +00:00
env(APP_DATABASE_URL): ''
env(POSTGRES_VERSION): '10.10'
2018-06-23 20:19:01 +00:00
env(MAGNETICOD_DATABASE_URL): ''
2018-06-20 16:35:08 +00:00
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)%'
2018-06-20 16:35:08 +00:00
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'