From e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 15 Jun 2017 09:43:48 +0200 Subject: Notifications Signed-off-by: Thomas Citharel --- src/Wallabag/UserBundle/Entity/User.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/Wallabag/UserBundle/Entity/User.php') diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index aba76ca7..aed5c73e 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php @@ -87,6 +87,11 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf */ 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"}) */ @@ -312,4 +317,20 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf return $this->clients->first(); } } + + /** + * @return ArrayCollection + */ + public function getNotifications() + { + return $this->notifications; + } + + /** + * @param ArrayCollection $notifications + */ + public function setNotifications($notifications) + { + $this->notifications = $notifications; + } } -- cgit v1.2.3