remove getting user

This commit is contained in:
Jannis Portmann 2021-05-09 10:19:54 +02:00
parent 7c2b895820
commit 185bede2b7

View file

@ -74,8 +74,6 @@ class UserController extends AbstractController
#[Route('/wish/delete/{id}', name: 'delete_wish')]
public function deleteWish(Wish $wish): Response
{
$user = $this->getUser();
$this->entityManager->remove($wish);
$this->entityManager->flush();