diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-05-12 15:02:32 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-05-25 19:09:52 +0200 |
commit | 22a4b20ed04a9c709fbbe3e254ad8b2d7757a38b (patch) | |
tree | 221d5cbf49107a83f223dae6afd8db8fab6ede1f /src/Wallabag/UserBundle/Entity/User.php | |
parent | 35941d57ee4d06ec3557d4b126d5f6fd263bcf3a (diff) | |
download | wallabag-22a4b20ed04a9c709fbbe3e254ad8b2d7757a38b.tar.gz wallabag-22a4b20ed04a9c709fbbe3e254ad8b2d7757a38b.tar.zst wallabag-22a4b20ed04a9c709fbbe3e254ad8b2d7757a38b.zip |
First draft for 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 3a167de7..2a8c9926 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php | |||
@@ -65,6 +65,11 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf | |||
65 | protected $entries; | 65 | protected $entries; |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * @ORM\OneToMany(targetEntity="Wallabag\CoreBundle\Entity\Notification", mappedBy="user", cascade={"remove"}) | ||
69 | */ | ||
70 | protected $notifications; | ||
71 | |||
72 | /** | ||
68 | * @ORM\OneToOne(targetEntity="Wallabag\CoreBundle\Entity\Config", mappedBy="user", cascade={"remove"}) | 73 | * @ORM\OneToOne(targetEntity="Wallabag\CoreBundle\Entity\Config", mappedBy="user", cascade={"remove"}) |
69 | */ | 74 | */ |
70 | protected $config; | 75 | protected $config; |
@@ -266,4 +271,20 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf | |||
266 | { | 271 | { |
267 | return $this->clients; | 272 | return $this->clients; |
268 | } | 273 | } |
274 | |||
275 | /** | ||
276 | * @return ArrayCollection<NotificationInterface> | ||
277 | */ | ||
278 | public function getNotifications() | ||
279 | { | ||
280 | return $this->notifications; | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * @param ArrayCollection<NotificationInterface> $notifications | ||
285 | */ | ||
286 | public function setNotifications($notifications) | ||
287 | { | ||
288 | $this->notifications = $notifications; | ||
289 | } | ||
269 | } | 290 | } |