Merge changes
This commit is contained in:
commit
9b134dca40
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ class UserController extends AbstractController
|
||||||
public function deleteWish(Wish $wish): Response
|
public function deleteWish(Wish $wish): Response
|
||||||
{
|
{
|
||||||
$user = $this->getUser();
|
$user = $this->getUser();
|
||||||
|
|
||||||
$user->removeWish($wish);
|
$this->entityManager->remove($wish);
|
||||||
$this->entityManager->persist($wish);
|
$this->entityManager->persist($wish);
|
||||||
$this->entityManager->flush();
|
$this->entityManager->flush();
|
||||||
|
|
||||||
|
|
Reference in a new issue