[DoctrineBundle] Fixing error per @stloyd

This commit is contained in:
Ryan Weaver 2011-06-02 13:26:17 -05:00
parent 28dcb3c581
commit 1ac4675e32

View File

@ -115,7 +115,7 @@ class Registry
* @param string $entityManagerNAme The entity manager name (null for the default one)
* @return Doctrine\ORM\EntityRepository
*/
public function getRepository($entityName, $entityManagerName)
public function getRepository($entityName, $entityManagerName = null)
{
return $this->getEntityManager($entityManagerName)
->getRespository($entityName);