From 69eb2ba4023f7b0901da65705dc3aa8cbeaa326c Mon Sep 17 00:00:00 2001 From: babak alizadeh Date: Sat, 20 Jan 2024 16:45:57 +0000 Subject: [PATCH] bug fix --- hesabixCore/src/Service/Notification.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/hesabixCore/src/Service/Notification.php b/hesabixCore/src/Service/Notification.php index 0074659..aadb278 100644 --- a/hesabixCore/src/Service/Notification.php +++ b/hesabixCore/src/Service/Notification.php @@ -27,17 +27,4 @@ class Notification $this->em->flush(); return true; } - public function insert(string $message,string $url,User $user): bool - { - $item = new \App\Entity\Notification(); - $item->setBid(null); - $item->setDateSubmit(time()); - $item->setViewed(false); - $item->setUser($user); - $item->setMessage($message); - $item->setUrl($url); - $this->em->persist($item); - $this->em->flush(); - return true; - } } \ No newline at end of file