<?php
namespace App\Entity\Website\PostType;
use App\Entity\BaseEntity;
use App\Repository\Website\PostType\PostTypeMetaRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
#[ORM\Entity(repositoryClass: PostTypeMetaRepository::class)]
class PostTypeMeta extends BaseEntity
{
#[ORM\Id]
#[ORM\Column(type: 'guid', unique: true)]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
private ?string $id;
#[ORM\ManyToOne(inversedBy: 'postTypeMetas')]
#[ORM\JoinColumn(nullable: false)]
private ?PostType $postType = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $value = null;
public function getId(): ?string
{
return $this->id;
}
public function getPostType(): ?PostType
{
return $this->postType;
}
public function setPostType(?PostType $postType): static
{
$this->postType = $postType;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): static
{
$this->value = $value;
return $this;
}
}