src/Entity/Post.php line 13
<?phpnamespace App\Entity;use Vich\UploaderBundle\Mapping\Annotation as Vich;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use App\Repository\PostRepository;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: PostRepository::class)]#[Gedmo\SoftDeleteable(fieldName: 'deletedAt', timeAware: false)]class Post extends RootEntity{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $title;#[ORM\Column(type: 'integer')]private $status = 0;#[ORM\Column(type: 'integer')]private $type = 0;#[ORM\Column(type: 'text', nullable: true)]private $body;#[ORM\ManyToOne(targetEntity: Attachment::class, cascade: ["Persist"])]#[ORM\JoinColumn(onDelete:'SET NULL')]private $thumbnail;#[ORM\Column(type: 'integer')]private $authorId = 0;public function getId(): ?int{return $this->id;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): self{$this->title = $title;return $this;}public function getStatus(): ?int{return $this->status;}public function setStatus(int $status): self{$this->status = $status;return $this;}public function getType(): ?int{return $this->type;}public function setType(int $type): self{$this->type = $type;return $this;}public function getBody(): ?string{return $this->body;}public function setBody(?string $body): self{$this->body = $body;return $this;}public function getAuthorId(): ?int{return $this->authorId;}public function setAuthorId(int $authorId): self{$this->authorId = $authorId;return $this;}public function getOther(): array{return $this->other;}public function setOther(?array $other): self{$this->other = $other;return $this;}public function getThumbnail(): ?Attachment{return $this->thumbnail;}public function setThumbnail(?Attachment $thumbnail): self{$this->thumbnail = $thumbnail;return $this;}}