<?php
namespace App\Entity;
use App\Repository\FilmProjectOriginalRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FilmProjectOriginalRepository::class)]
class FilmProjectOriginal
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\OneToOne(inversedBy: 'filmProjectOriginal', targetEntity: FilmProject::class, cascade: ['persist', 'remove'])]
private $filmProject;
#[ORM\Column(type: 'array', nullable: true)]
private $data = [];
public function getId(): ?int
{
return $this->id;
}
public function getFilmProject(): ?FilmProject
{
return $this->filmProject;
}
public function setFilmProject(?FilmProject $filmProject): self
{
$this->filmProject = $filmProject;
return $this;
}
public function getData(): ?array
{
return $this->data;
}
public function setData(?array $data): self
{
$this->data = $data;
return $this;
}
}