merged branch brikou/typehint_fix (PR #3853)
Commits -------6486e25
fixed used statements3530858
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
This commit is contained in:
commit
667f8fd474
@ -15,6 +15,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||||||
use Symfony\Bridge\Doctrine\RegistryInterface;
|
use Symfony\Bridge\Doctrine\RegistryInterface;
|
||||||
use Doctrine\DBAL\Connection;
|
use Doctrine\DBAL\Connection;
|
||||||
use Doctrine\ORM\Configuration;
|
use Doctrine\ORM\Configuration;
|
||||||
|
use Doctrine\ORM\EntityManager;
|
||||||
|
use Doctrine\ORM\EntityRepository;
|
||||||
use Doctrine\ORM\ORMException;
|
use Doctrine\ORM\ORMException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -210,7 +212,7 @@ class Registry implements RegistryInterface
|
|||||||
* @param string $entityName The name of the entity.
|
* @param string $entityName The name of the entity.
|
||||||
* @param string $entityManagerName The entity manager name (null for the default one)
|
* @param string $entityManagerName The entity manager name (null for the default one)
|
||||||
*
|
*
|
||||||
* @return Doctrine\ORM\EntityRepository
|
* @return EntityRepository
|
||||||
*/
|
*/
|
||||||
public function getRepository($entityName, $entityManagerName = null)
|
public function getRepository($entityName, $entityManagerName = null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user