I'm trying to setup an Sql Server
connection for Doctrine in Symfony2.However I can not figure out how to setup some Entity Foo
to be managed by the new Entity Manager.
I have seen this post in regards to managing Entities with multiple Entity Managers, however I don't know how to use it with different Entity Managers like this. What metadata should I use so I can handle some of My entities with the new Entity Manager?
Entity MetaData for Doctrine and multiple Entity Managers
302 Views Asked by user2268997 At
1
You can put Foo entity to separate bundle i.e MyFooBundle (if you have single core/app bundle) and map the bundle to other entity manager.
Disable auto mapping and configure connections at config.yml then define the entity managers and mapping