getRepository(GeoImage::class); $geoImages = $repo->findAllWithGeometry(); return $this->json($geoImages); } #[Route('/geoimages/menu', name: 'app_geo_image_menu')] public function menu(EntityManagerInterface $em): JsonResponse { $repo = $em->getRepository(GeoImage::class); $geoImages = $repo->findLabelsAndIds(); return $this->json($geoImages); } #[Route('/geoimages/{id}', name: 'app_geo_image_record')] public function record(GeoImage $geoImage): JsonResponse { return $this->json($geoImage); } }