*/
protected $entries;
+ /**
+ * @ORM\OneToMany(targetEntity="Wallabag\CoreBundle\Entity\Notification", mappedBy="user", cascade={"remove"})
+ */
+ protected $notifications;
+
/**
* @ORM\OneToOne(targetEntity="Wallabag\CoreBundle\Entity\Config", mappedBy="user", cascade={"remove"})
*/
return $this->clients->first();
}
}
+
+ /**
+ * @return ArrayCollection<NotificationInterface>
+ */
+ public function getNotifications()
+ {
+ return $this->notifications;
+ }
+
+ /**
+ * @param ArrayCollection<NotificationInterface> $notifications
+ */
+ public function setNotifications($notifications)
+ {
+ $this->notifications = $notifications;
+ }
}