Permalink
Browse files

[DoctrineBundle] tweaked phpdoc

  • Loading branch information...
1 parent 2ed60ad commit a586a871b52ebb0d6d85de649b67e6cde7ea802a @fabpot fabpot committed Jun 7, 2011
Showing with 14 additions and 13 deletions.
  1. +14 −13 Registry.php
View
@@ -109,19 +109,6 @@ public function getEntityManager($name = null)
}
/**
- * 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.
*
* This method is useful when an entity manager has been closed
@@ -185,4 +172,18 @@ public function getEntityManagerNames()
{
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);
+ }
}

0 comments on commit a586a87

Please sign in to comment.