diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index f8b0f62..4e02fa8 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -75,8 +75,8 @@ class UserController extends AbstractController public function deleteWish(Wish $wish): Response { $user = $this->getUser(); - - $user->removeWish($wish); + + $this->entityManager->remove($wish); $this->entityManager->persist($wish); $this->entityManager->flush();