diff --git a/src/Entity/Notification.php b/src/Entity/Notification.php index d024ac68..012bcb15 100644 --- a/src/Entity/Notification.php +++ b/src/Entity/Notification.php @@ -5,6 +5,8 @@ namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; +use DateTime; + /** * @ORM\Entity * @ORM\Table(name="notification", indexes={@ORM\Index(columns={"user_id"})}) @@ -63,6 +65,7 @@ class Notification public function __construct() { + $this->date_create = new DateTime(); $this->flag_read = false; $this->flag_fresh = true; }