Fix deletion of wishes
This commit is contained in:
parent
b5d7281d77
commit
fec68fa969
1 changed files with 1 additions and 2 deletions
|
@ -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!");
|
||||
|
|
Reference in a new issue