Skip to content
Snippets Groups Projects
Commit f8847621 authored by Zahdi's avatar Zahdi
Browse files

[Progress] minor changes

parent 19880389
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment