In Symfony2 you can work with multiple entity managers and use something like the code below:
$em = $this->get('doctrine')->getManager();
$em = $this->get('doctrine')->getManager('default');
$customerEm = $this->get('doctrine')->getManager('customer');
Run Code Online (Sandbox Code Playgroud)
We can inject the default manager to any service by using:
"@doctrine.orm.entity_manager"
Run Code Online (Sandbox Code Playgroud)
How can you inject non-default entity managers into services?