Fix deletion of wishes

This commit is contained in:
Jannis Portmann 2021-05-08 16:59:45 +02:00
parent b5d7281d77
commit fec68fa969

View file

@ -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!");