Explorar o código

[DoctrineBundle] tweaked phpdoc

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
8618a27bf7
Modificáronse 1 ficheiros con 14 adicións e 13 borrados
  1. 14 13
      src/Symfony/Bundle/DoctrineBundle/Registry.php

+ 14 - 13
src/Symfony/Bundle/DoctrineBundle/Registry.php

@@ -108,19 +108,6 @@ class Registry
         return $this->container->get($this->entityManagers[$name]);
     }
 
-    /**
-     * Shortcut method to return the EntityRepository for an entity.
-     *
-     * @param string $entityName The name of the entity.
-     * @param string $entityManagerNAme The entity manager name (null for the default one)
-     *
-     * @return Doctrine\ORM\EntityRepository
-     */
-    public function getRepository($entityName, $entityManagerName = null)
-    {
-        return $this->getEntityManager($entityManagerName)->getRepository($entityName);
-    }
-
     /**
      * Resets a named entity manager.
      *
@@ -185,4 +172,18 @@ class Registry
     {
         return $this->entityManagers;
     }
+
+
+    /**
+     * Gets the EntityRepository for an entity.
+     *
+     * @param string $entityName        The name of the entity.
+     * @param string $entityManagerNAme The entity manager name (null for the default one)
+     *
+     * @return Doctrine\ORM\EntityRepository
+     */
+    public function getRepository($entityName, $entityManagerName = null)
+    {
+        return $this->getEntityManager($entityManagerName)->getRepository($entityName);
+    }
 }