diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-10-04 20:45:33 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-11-03 19:58:37 +0100 |
commit | 10e8c28feaf6d858948285a291231f651ef74728 (patch) | |
tree | 5c48216dc1ce6a6dd8f292d489bb4a7d03cb5595 /lib/Db/Feed.php | |
parent | 361cfa55b7302b29e158647060085550b9a3dfe1 (diff) |
Add migration with foreign keys
Closes #829
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Db/Feed.php')
-rw-r--r-- | lib/Db/Feed.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/Db/Feed.php b/lib/Db/Feed.php index 852de4c78..473912acc 100644 --- a/lib/Db/Feed.php +++ b/lib/Db/Feed.php @@ -37,7 +37,7 @@ class Feed extends Entity implements IAPI, \JsonSerializable protected $faviconLink = null; /** @var int|null */ protected $added = 0; - /** @var int */ + /** @var int|null */ protected $folderId; /** @var int */ protected $unreadCount; @@ -152,9 +152,9 @@ class Feed extends Entity implements IAPI, \JsonSerializable } /** - * @return int + * @return int|null */ - public function getFolderId(): int + public function getFolderId(): ?int { return $this->folderId; } @@ -416,9 +416,11 @@ class Feed extends Entity implements IAPI, \JsonSerializable } /** - * @param int $folderId + * @param int|null $folderId + * + * @return Feed */ - public function setFolderId(int $folderId): Feed + public function setFolderId(?int $folderId): Feed { if ($this->folderId !== $folderId) { $this->folderId = $folderId; |