aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Entity/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/UserBundle/Entity/User.php')
-rw-r--r--src/Wallabag/UserBundle/Entity/User.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php
index 53c327f9..815a1902 100644
--- a/src/Wallabag/UserBundle/Entity/User.php
+++ b/src/Wallabag/UserBundle/Entity/User.php
@@ -88,6 +88,11 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
88 protected $entries; 88 protected $entries;
89 89
90 /** 90 /**
91 * @ORM\OneToMany(targetEntity="Wallabag\CoreBundle\Entity\Notification", mappedBy="user", cascade={"remove"})
92 */
93 protected $notifications;
94
95 /**
91 * @ORM\OneToOne(targetEntity="Wallabag\CoreBundle\Entity\Config", mappedBy="user", cascade={"remove"}) 96 * @ORM\OneToOne(targetEntity="Wallabag\CoreBundle\Entity\Config", mappedBy="user", cascade={"remove"})
92 */ 97 */
93 protected $config; 98 protected $config;
@@ -319,4 +324,20 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
319 return $this->clients->first(); 324 return $this->clients->first();
320 } 325 }
321 } 326 }
327
328 /**
329 * @return ArrayCollection<NotificationInterface>
330 */
331 public function getNotifications()
332 {
333 return $this->notifications;
334 }
335
336 /**
337 * @param ArrayCollection<NotificationInterface> $notifications
338 */
339 public function setNotifications($notifications)
340 {
341 $this->notifications = $notifications;
342 }
322} 343}