diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 36a899b..883aa1a 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -72,8 +72,7 @@ class UserController extends AbstractController { $user = $this->getUser(); - $user->removeWish($wish); - $this->entityManager->persist($wish); + $this->entityManager->remove($wish); $this->entityManager->flush(); $this->addFlash("success", "Successfully removed the wish!");