isMethod('POST')) { $teamer = $attendance->getTeamer(); $this->entityManager->remove($attendance); $this->entityManager->flush(); $this->addFlash('success', 'Die Teilnahme an der Fortbilundg wurde gelöscht'); $this->logger->info('Delete training attendance', [ 'attendance_id' => $attendance->getId(), 'teamer_id' => $teamer->getId(), 'teamer_name' => (string) $teamer, 'training_id' => $attendance->getTraining()->getId(), 'training_name' => $attendance->getTraining()->getName(), ]); return new HxRedirectResponse($this->generateUrl('app_admin_teamer_skills', [ 'uuid' => $teamer->getUuid(), ])); } return $this->render('admin/teamer/training_attendance/modal_delete.html.twig', [ 'attendance' => $attendance, ]); } }