title: Symfony 3 access entity manager from another bundle`s repository
body: <p>In my project I got 2 bundles (AppBundle and CommonBundle) and 2 different databases, 1 per Bundle. In my config it is shown like this:</p>
  
  <pre><code>orm:
      default_entity_manager:   default
      auto_generate_proxy_classes: "%kernel.debug%"
      entity_managers:
          default:
              connection:       default
              auto_mapping:     true
              naming_strategy:  doctrine.orm.naming_strategy.underscore
          common:
              connection:       common_data
              auto_mapping:     false
              mappings:
                  CommonBundle:     ~
                  #FOSUserBundle: ~
              naming_strategy:  doctrine.orm.naming_strategy.underscore
  </code></pre>
  
  <p>Now I am in <code>CommonBundle</code>s Repository and I want to access <code>AppBundle</code>s connection to get some data from its DB, like this:</p>
  
  <pre><code>&lt;?php
  
  namespace CommonBundle\Repository;
  
  use Doctrine\ORM\EntityRepository;
  use CommonBundle\Entity\Audit;
  
  class AuditRepository extends EntityRepository
  {
    public function MyFunc()
      {
          $em =$this-&gt;getEntityManager();
          $em_def =$this-&gt;getEntityManager('default');
          $em_def-&gt;getRepository('AppBundle:Info')-&gt;getInfo('myInfo');//ERROR here
      }
  }
  </code></pre>
  
  <p>But instead I get the following error:</p>
  
  <pre><code>Uncaught PHP Exception Doctrine\ORM\ORMException: "Unknown Entity namespace alias 'AppBundle'." at ...
  </code></pre>
  
  <p>So any ideas how to fix it would be welcome. Thank you. </p>