mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
add userId/added fields
This commit is contained in:
parent
f0a38e1bf5
commit
23b74a800a
2 changed files with 60 additions and 0 deletions
|
|
@ -24,4 +24,34 @@ class Page
|
||||||
|
|
||||||
return $this;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,12 @@ class Torrent
|
||||||
#[ORM\Column]
|
#[ORM\Column]
|
||||||
private ?int $id = null;
|
private ?int $id = null;
|
||||||
|
|
||||||
|
#[ORM\Column]
|
||||||
|
private ?int $userId = null;
|
||||||
|
|
||||||
|
#[ORM\Column]
|
||||||
|
private ?int $added = null;
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column(length: 255)]
|
||||||
private ?string $filename = null;
|
private ?string $filename = null;
|
||||||
|
|
||||||
|
|
@ -41,6 +47,30 @@ class Torrent
|
||||||
return $this;
|
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
|
public function getFilename(): ?string
|
||||||
{
|
{
|
||||||
return $this->filename;
|
return $this->filename;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue