From f88476218f28a84ebdc5f47a44b82e949860a044 Mon Sep 17 00:00:00 2001 From: Zahdi <ZahdiMohcine20@gmail.com> Date: Wed, 26 Mar 2025 00:06:07 +0100 Subject: [PATCH] [Progress] minor changes --- src/Controller/WishlistController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controller/WishlistController.php b/src/Controller/WishlistController.php index e7442f82..8348330a 100644 --- a/src/Controller/WishlistController.php +++ b/src/Controller/WishlistController.php @@ -34,6 +34,7 @@ final class WishlistController extends AbstractController $form->handleRequest($request); // Handle the form submission if ($form->isSubmitted() && $form->isValid()) { + $wishlist->setOwner($this->getUser()); $entityManager->persist($wishlist); // Persist the new wishlist to the database $entityManager->flush(); // Save changes to the database -- GitLab