我需要能够将连接/实体管理器与子域匹配:
one
two
但我不确定如何最好地实现这一点,在Symfony3.4中接近它的正确方法是什么?
doctrine:
dbal:
default_connection: one
connections:
one:
driver: pdo_mysql
etc...
two:
driver: pdo_mysql
etc...
orm:
auto_generate_proxy_classes: '%kernel.debug%'
default_entity_manager: one
entity_managers:
one:
connection: one
mappings:
UserBundle: ~
AnotherBundle: ~
YetAnotherBundle: ~
two:
connection: two
mappings:
UserBundle: ~
AnotherBundle: ~