skip to Main Content

Undefined method getDoctrine – PHP

I am a beginner on Symfony 6 and I am blocked because I have an error message: "Undefined method getDoctrine" with Intelephense Here is my code: #[Route('/recettes', name: 'app_recettes')] public function index(int $id): Response { $em = $this->getDoctrine()->getManager(); $recette =…

VIEW QUESTION
Back To Top
Search