Parcourir la source

[DoctrineBundle] Fixing error per @stloyd

Ryan Weaver il y a 14 ans
Parent
commit
1ac4675e32
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Symfony/Bundle/DoctrineBundle/Registry.php

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Registry.php

@@ -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);