PHP Class Happyr\DoctrineSpecification\RepositoryFactory

Provides an implementation of RepositoryFactory so that the default repository type in Doctrine can easily be replaced.
Inheritance: implements Doctrine\ORM\Repository\RepositoryFactory
Datei anzeigen Open project: happyr/doctrine-specification

Public Methods

Method Description
getRepository ( Doctrine\ORM\EntityManagerInterface $entityManager, string $entityName ) : Doctrine\ORM\EntityRepository Gets the repository for an entity class.

Method Details

getRepository() public method

Gets the repository for an entity class.
public getRepository ( Doctrine\ORM\EntityManagerInterface $entityManager, string $entityName ) : Doctrine\ORM\EntityRepository
$entityManager Doctrine\ORM\EntityManagerInterface The EntityManager instance.
$entityName string The name of the entity.
return Doctrine\ORM\EntityRepository