class DefaultRepositoryFactory implements RepositoryFactory (View source)

This factory is used to create default repository objects for entities at runtime.

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