getSchemaManager(); foreach ($paraSubRepo->findAll() as $sub) { dump($sub); } dump('-------------------'); foreach ($beSubRepo->findAll() as $sub) { dump($sub); } return $this->render('index/index.html.twig', [ 'schemaManager' => $sm, //'offer_id' => $sub->getService()->ge ]); } #[Route('/notification/dm', name: 'notification_dm')] public function notificationDm( Request $request, MerServiceRepository $repo, MerBeDMRepository $repoDm ): Response { return $this->render('index/notificationDm.html.twig', [ 'serviceRepo' => $repo->findByOfferId($request->query->get('offer_id')), 'beDmRepo' => $repoDm->findByOfferId($request->query->get('offer_id')) ]); } }