From 23b74a800aeefa77e4e5be48c8f4f7183f1a968f Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 8 Oct 2023 01:44:01 +0300 Subject: [PATCH] add userId/added fields --- src/Entity/Page.php | 30 ++++++++++++++++++++++++++++++ src/Entity/Torrent.php | 30 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/src/Entity/Page.php b/src/Entity/Page.php index f7f25c8..cb5f2c9 100644 --- a/src/Entity/Page.php +++ b/src/Entity/Page.php @@ -24,4 +24,34 @@ class Page return $this; } + + #[ORM\Column] + private ?int $userId = null; + + #[ORM\Column] + private ?int $added = null; + + public function getUserId(): ?int + { + return $this->userId; + } + + public function setUserId(int $userId): static + { + $this->userId = $userId; + + return $this; + } + + public function getAdded(): ?int + { + return $this->added; + } + + public function setAdded(int $added): static + { + $this->added = $added; + + return $this; + } } diff --git a/src/Entity/Torrent.php b/src/Entity/Torrent.php index 20aba38..e331f7a 100644 --- a/src/Entity/Torrent.php +++ b/src/Entity/Torrent.php @@ -14,6 +14,12 @@ class Torrent #[ORM\Column] private ?int $id = null; + #[ORM\Column] + private ?int $userId = null; + + #[ORM\Column] + private ?int $added = null; + #[ORM\Column(length: 255)] private ?string $filename = null; @@ -41,6 +47,30 @@ class Torrent return $this; } + public function getUserId(): ?int + { + return $this->userId; + } + + public function setUserId(int $userId): static + { + $this->userId = $userId; + + return $this; + } + + public function getAdded(): ?int + { + return $this->added; + } + + public function setAdded(int $added): static + { + $this->added = $added; + + return $this; + } + public function getFilename(): ?string { return $this->filename;