Преглед на файлове

[DoctrineBundle] Fixing error per @stloyd

Ryan Weaver преди 14 години
родител
ревизия
1ac4675e32
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);