1
我有两个MySQL连接在我的Symfony config.yml设置:的Symfony2/Doctrine2 - 关联实体某些连接
doctrine:
dbal:
default_connection: default
connections:
default: __VARIABLES
dealer: __VARIABLES
我知道我可以通过检索某些连接对象: $this->get('doctrine')->getEntityManager('dealer');
我问题是 - 是否有办法将连接设置为某个实体,因此doctrine:schema:update
同步仅在设置连接的范围内完成?