浏览代码

fixed used statements

Brikou CARRE 13 年之前
父节点
当前提交
6486e25a38
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/Symfony/Bundle/DoctrineBundle/Registry.php

+ 6 - 4
src/Symfony/Bundle/DoctrineBundle/Registry.php

@@ -15,6 +15,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 use Symfony\Bridge\Doctrine\RegistryInterface;
 use Doctrine\DBAL\Connection;
 use Doctrine\ORM\Configuration;
+use Doctrine\ORM\EntityManager;
+use Doctrine\ORM\EntityRepository;
 use Doctrine\ORM\ORMException;
 
 /**
@@ -109,7 +111,7 @@ class Registry implements RegistryInterface
      *
      * @param string $name The entity manager name (null for the default one)
      *
-     * @return \Doctrine\ORM\EntityManager
+     * @return EntityManager
      */
     public function getEntityManager($name = null)
     {
@@ -154,7 +156,7 @@ class Registry implements RegistryInterface
      *
      * @param string $name The entity manager name (null for the default one)
      *
-     * @return \Doctrine\ORM\EntityManager
+     * @return EntityManager
      */
     public function resetEntityManager($name = null)
     {
@@ -210,7 +212,7 @@ class Registry implements RegistryInterface
      * @param string $entityName        The name of the entity.
      * @param string $entityManagerName The entity manager name (null for the default one)
      *
-     * @return \Doctrine\ORM\EntityRepository
+     * @return EntityRepository
      */
     public function getRepository($entityName, $entityManagerName = null)
     {
@@ -222,7 +224,7 @@ class Registry implements RegistryInterface
      *
      * @param string $class A Doctrine Entity class name
      *
-     * @return \Doctrine\ORM\EntityManager|null
+     * @return EntityManager|null
      */
     public function getEntityManagerForClass($class)
     {