diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-06-15 09:43:48 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-23 09:42:20 +0200 |
commit | e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37 (patch) | |
tree | 904f42fa442188bf456b9773295fb9582634ba6c /src/Wallabag/UserBundle/Entity/User.php | |
parent | 29714661b1df78871ceaf0e079f11041a8641d4b (diff) | |
download | wallabag-e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37.tar.gz wallabag-e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37.tar.zst wallabag-e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37.zip |
Notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/UserBundle/Entity/User.php')
-rw-r--r-- | src/Wallabag/UserBundle/Entity/User.php | 21 |
1 files changed, 21 insertions, 0 deletions
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 | |||
@@ -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; |
@@ -312,4 +317,20 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf | |||
312 | return $this->clients->first(); | 317 | return $this->clients->first(); |
313 | } | 318 | } |
314 | } | 319 | } |
320 | |||
321 | /** | ||
322 | * @return ArrayCollection<NotificationInterface> | ||
323 | */ | ||
324 | public function getNotifications() | ||
325 | { | ||
326 | return $this->notifications; | ||
327 | } | ||
328 | |||
329 | /** | ||
330 | * @param ArrayCollection<NotificationInterface> $notifications | ||
331 | */ | ||
332 | public function setNotifications($notifications) | ||
333 | { | ||
334 | $this->notifications = $notifications; | ||
335 | } | ||
315 | } | 336 | } |