Browse Source

add approved fields

main
ghost 1 year ago
parent
commit
57085f8167
  1. 15
      src/Entity/Page.php
  2. 20
      src/Entity/Torrent.php

15
src/Entity/Page.php

@ -31,6 +31,9 @@ class Page @@ -31,6 +31,9 @@ class Page
#[ORM\Column]
private ?int $added = null;
#[ORM\Column]
private ?bool $approved = null;
public function getUserId(): ?int
{
return $this->userId;
@ -54,4 +57,16 @@ class Page @@ -54,4 +57,16 @@ class Page
return $this;
}
public function isApproved(): ?bool
{
return $this->approved;
}
public function setApproved(bool $approved): static
{
$this->approved = $approved;
return $this;
}
}

20
src/Entity/Torrent.php

@ -20,8 +20,8 @@ class Torrent @@ -20,8 +20,8 @@ class Torrent
#[ORM\Column]
private ?int $added = null;
#[ORM\Column(length: 255)]
private ?string $filename = null;
#[ORM\Column]
private ?bool $approved = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $keywords = null;
@ -71,26 +71,26 @@ class Torrent @@ -71,26 +71,26 @@ class Torrent
return $this;
}
public function getFilename(): ?string
public function getKeywords(): ?string
{
return $this->filename;
return $this->keywords;
}
public function setFilename(string $filename): static
public function setKeywords(?string $keywords): static
{
$this->filename = $filename;
$this->keywords = $keywords;
return $this;
}
public function getKeywords(): ?string
public function isApproved(): ?bool
{
return $this->keywords;
return $this->approved;
}
public function setKeywords(?string $keywords): static
public function setApproved(bool $approved): static
{
$this->keywords = $keywords;
$this->approved = $approved;
return $this;
}

Loading…
Cancel
Save