<?php
namespace App\Admin\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* StdPagesPages
*/
#[ORM\Table(name: 'std_pages_pages')]
#[ORM\Index(name: 'fk_std_pages_std_pages', columns: ['page_id'])]
#[ORM\Index(name: 'fk_std_pages_pages_std_content_types', columns: ['content_type'])]
#[ORM\Index(name: 'fk_std_pages_pages_std_relation_id', columns: ['relation_id'])]
#[ORM\Index(name: 'fk_std_pages_pages_std_order_value', columns: ['order_value'])]
#[ORM\Entity(repositoryClass: 'App\Admin\Repository\StdPagesPagesRepository')]
class StdPagesPages
{
/**
* @var int
*/
#[ORM\Column(name: 'id', type: 'integer', nullable: false, options: ['unsigned' => true, 'comment' => 'Page relations unique identifier'])]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
/**
* @var int
*/
#[ORM\Column(name: 'relation_id', type: 'integer', nullable: true, options: ['unsigned' => true, 'comment' => 'Page relations unique identifier'])]
private $relationId;
/**
* @var \StdPages
*/
#[ORM\JoinColumn(name: 'page_id', referencedColumnName: 'id')]
#[ORM\ManyToOne(targetEntity: 'StdPages', inversedBy: 'relations')]
private $pageId;
/**
* @var int
*/
#[ORM\Column(name: 'order_value', type: 'integer', nullable: false, options: ['comment' => 'Page relation order'])]
private $orderValue;
/**
* @var \StdContentTypes
*/
#[ORM\JoinColumn(name: 'content_type', referencedColumnName: 'id')]
#[ORM\ManyToOne(targetEntity: 'StdContentTypes')]
private $contentType;
public function getId(): ?int
{
return $this->id;
}
public function getRelationId(): ?int
{
return $this->relationId;
}
public function setRelationId(int $relationId): self
{
$this->relationId = $relationId;
return $this;
}
public function getPageId(): ?StdPages
{
return $this->pageId;
}
public function setPageId(?StdPages $pageId): self
{
$this->pageId = $pageId;
return $this;
}
public function getOrderValue(): ?int
{
return $this->orderValue;
}
public function setOrderValue(int $orderValue): self
{
$this->orderValue = $orderValue;
return $this;
}
public function getContentType(): ?StdContentTypes
{
return $this->contentType;
}
public function setContentType(?StdContentTypes $contentType): self
{
$this->contentType = $contentType;
return $this;
}
}