Selaa lähdekoodia

[DoctrineBundle] Fixing error per @stloyd

Ryan Weaver 14 vuotta sitten
vanhempi
commit
1ac4675e32
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);