Interface for entity repository factory.
public
getRepository<T is object>(EntityManagerInterface $entityManager, class-string<T> $entityName): ObjectRepository<T>
Gets the repository for an entity class.
The EntityManager instance.
The name of the entity.
This type will change to {@see EntityRepository} in 3.0.