doctrine/doctrine2 — pull request #1159 by akexakex (2014-10-13 08:23:16+00:00)
Title: Update DefaultRepositoryFactory.php

getRepository() does not support different databases for the same entity class due to the lookup in repositoryList. By adding the database name (or any other unique name for the specific database/connection) the lookup works for identical entities in different databases.