浏览代码

merged branch brikou/typehint_fix (PR #3853)

Commits
-------

6486e25 fixed used statements
3530858 fixed typehints in docblocks (IDE completion works now)

Discussion
----------

Typehint fix

---------------------------------------------------------------------------

by fabpot at 2012-04-10T09:12:51Z

For type hint in PHPDoc, we are using the class name and not the full namespace (of course, we need the associated use statement).

---------------------------------------------------------------------------

by brikou at 2012-04-10T09:29:39Z

@fabpot ok fabien, i've added the use statements and (for both entityRepository and manager) cheer
Fabien Potencier 13 年之前
父节点
当前提交
667f8fd474
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/Symfony/Bundle/DoctrineBundle/Registry.php

+ 3 - 1
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;
 
 /**
@@ -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)
     {