EntityManager obtient un référentiel

$em = $this->getDoctrine();
// EntityName prend le nom de votre entité 

//Exemple avec notre entité Product
$repository = $this->getDoctrine()->getRepository(Product::class);
Erwan H Dev