interface RepositoryFactory (View source)

Interface for entity repository factory.

Methods

ObjectRepository
getRepository(EntityManagerInterface $entityManager, string $entityName)

Gets the repository for an entity class.

Details

ObjectRepository getRepository(EntityManagerInterface $entityManager, string $entityName)

Gets the repository for an entity class.

Parameters

EntityManagerInterface $entityManager The EntityManager instance.
string $entityName The name of the entity.

Return Value

ObjectRepository