title: Working with two entity managers in the same bundle in Symfony2
body: <p>I'm trying to work with two entity managers for the same bundle. My configuration is like this:</p>
  <pre><code>orm:
  
      default_entity_manager:   default
      entity_managers:
          electra:
              connection:       electra
              mappings:
                  XXDemoBundle: ~
          default:
              connection:       default
              mappings:
                  XXDemoBundle: ~
  </code></pre>
  <p>Is there any way to tell which entities belong to which entity manager? It crashes now if I want to work with a table which doesn't belong to the default entity manager.</p>
  <ul>
  <li>UPDATE</li>
  </ul>
  <p>here is my configuration for the connection:</p>
  <pre><code>doctrine:
      dbal:
          default_connection:       default
          connections:
              default:
                  dbname:           old_project
                  user:             root
                  password:         123123
                  host:             1.1.1.1
                  port:             1
              electra:
                  dbname:           electra
                  user:             root
                  password:         123123
                  host:             2.2.2.2
                  port:             2
  
  orm:
      default_entity_manager:   electra
      entity_managers:
          electra:
              connection:       electra
              mappings:
                  XXDemoBundle: ~
  
  
          default:
              connection:       default
              mappings:
                  XXDemoBundle: ~
  </code></pre>