. */ namespace Doctrine\ORM\Repository; use Doctrine\ORM\EntityManagerInterface; /** * Interface for entity repository factory. * * @author Guilherme Blanco * @since 2.5 */ interface RepositoryFactory { /** * Set the entity manager. * * @param \Doctrine\ORM\EntityManagerInterface $entityManager */ public function setEntityManager(EntityManagerInterface $entityManager); /** * Gets the repository for an entity class. * * @param string $entityName The name of the entity. * * @return \Doctrine\ORM\EntityRepository */ public function getRepository($entityName); }