diff --git a/src/Controller/WishlistController.php b/src/Controller/WishlistController.php
index e7442f82f3af926c38b4f018fee36523765035f0..8348330a144ac967c5996021eb788751c91e6a82 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