rename page to article

This commit is contained in:
ghost 2023-10-10 14:43:44 +03:00
parent 649838d4ee
commit c747166a30
43 changed files with 597 additions and 597 deletions

View file

@ -23,7 +23,7 @@ class Activity
private ?int $userId = null;
#[ORM\Column(nullable: true)]
private ?int $pageId = null;
private ?int $articleId = null;
public function getId(): ?int
{
@ -80,14 +80,14 @@ class Activity
return $this;
}
public function getPageId(): ?int
public function getArticleId(): ?int
{
return $this->pageId;
return $this->articleId;
}
public function setPageId(?int $pageId): static
public function setArticleId(?int $articleId): static
{
$this->pageId = $pageId;
$this->articleId = $articleId;
return $this;
}

View file

@ -2,11 +2,11 @@
namespace App\Entity;
use App\Repository\PageRepository;
use App\Repository\ArticleRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageRepository::class)]
class Page
#[ORM\Entity(repositoryClass: ArticleRepository::class)]
class Article
{
#[ORM\Id]
#[ORM\GeneratedValue]

View file

@ -2,12 +2,12 @@
namespace App\Entity;
use App\Repository\PageTitleRepository;
use App\Repository\ArticleDescriptionRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageTitleRepository::class)]
class PageTitle
#[ORM\Entity(repositoryClass: ArticleDescriptionRepository::class)]
class ArticleDescription
{
#[ORM\Id]
#[ORM\GeneratedValue]
@ -15,7 +15,7 @@ class PageTitle
private ?int $id = null;
#[ORM\Column]
private ?int $pageId = null;
private ?int $articleId = null;
#[ORM\Column]
private ?int $userId = null;
@ -44,14 +44,14 @@ class PageTitle
return $this;
}
public function getPageId(): ?int
public function getArticleId(): ?int
{
return $this->pageId;
return $this->articleId;
}
public function setPageId(int $pageId): static
public function setArticleId(int $articleId): static
{
$this->pageId = $pageId;
$this->articleId = $articleId;
return $this;
}

View file

@ -2,12 +2,12 @@
namespace App\Entity;
use App\Repository\PageSensitiveRepository;
use App\Repository\ArticleSensitiveRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageSensitiveRepository::class)]
class PageSensitive
#[ORM\Entity(repositoryClass: ArticleSensitiveRepository::class)]
class ArticleSensitive
{
#[ORM\Id]
#[ORM\GeneratedValue]
@ -15,7 +15,7 @@ class PageSensitive
private ?int $id = null;
#[ORM\Column]
private ?int $pageId = null;
private ?int $articleId = null;
#[ORM\Column]
private ?int $userId = null;
@ -44,14 +44,14 @@ class PageSensitive
return $this;
}
public function getPageId(): ?int
public function getArticleId(): ?int
{
return $this->pageId;
return $this->articleId;
}
public function setPageId(int $pageId): static
public function setArticleId(int $articleId): static
{
$this->pageId = $pageId;
$this->articleId = $articleId;
return $this;
}

View file

@ -2,12 +2,12 @@
namespace App\Entity;
use App\Repository\PageDescriptionRepository;
use App\Repository\ArticleTitleRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageDescriptionRepository::class)]
class PageDescription
#[ORM\Entity(repositoryClass: ArticleTitleRepository::class)]
class ArticleTitle
{
#[ORM\Id]
#[ORM\GeneratedValue]
@ -15,7 +15,7 @@ class PageDescription
private ?int $id = null;
#[ORM\Column]
private ?int $pageId = null;
private ?int $articleId = null;
#[ORM\Column]
private ?int $userId = null;
@ -44,14 +44,14 @@ class PageDescription
return $this;
}
public function getPageId(): ?int
public function getArticleId(): ?int
{
return $this->pageId;
return $this->articleId;
}
public function setPageId(int $pageId): static
public function setArticleId(int $articleId): static
{
$this->pageId = $pageId;
$this->articleId = $articleId;
return $this;
}

View file

@ -2,12 +2,12 @@
namespace App\Entity;
use App\Repository\PageTorrentsRepository;
use App\Repository\ArticleTorrentsRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageTorrentsRepository::class)]
class PageTorrents
#[ORM\Entity(repositoryClass: ArticleTorrentsRepository::class)]
class ArticleTorrents
{
#[ORM\Id]
#[ORM\GeneratedValue]
@ -15,7 +15,7 @@ class PageTorrents
private ?int $id = null;
#[ORM\Column]
private ?int $pageId = null;
private ?int $articleId = null;
#[ORM\Column]
private ?int $userId = null;
@ -41,14 +41,14 @@ class PageTorrents
return $this;
}
public function getPageId(): ?int
public function getArticleId(): ?int
{
return $this->pageId;
return $this->articleId;
}
public function setPageId(int $pageId): static
public function setArticleId(int $articleId): static
{
$this->pageId = $pageId;
$this->articleId = $articleId;
return $this;
}