diff options
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 | } |