bug fix
This commit is contained in:
parent
1e99323ccb
commit
69eb2ba402
|
@ -27,17 +27,4 @@ class Notification
|
||||||
$this->em->flush();
|
$this->em->flush();
|
||||||
return true;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue