<?phpnamespace App\Entity;use App\Repository\CertModelResultFinalRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CertModelResultFinalRepository::class) */class CertModelResultFinal{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $valeur; /** * @ORM\Column(type="boolean", nullable=true) */ private $yon; /** * @ORM\OneToOne(targetEntity=CertModel::class, mappedBy="resultFinal", cascade={"persist", "remove"}) */ private $certModel; 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 getValeur(): ?string { return $this->valeur; } public function setValeur(?string $valeur): self { $this->valeur = $valeur; return $this; } public function isYon(): ?bool { return $this->yon; } public function setYon(?bool $yon): self { $this->yon = $yon; return $this; } public function getCertModel(): ?CertModel { return $this->certModel; } public function setCertModel(?CertModel $certModel): self { // unset the owning side of the relation if necessary if ($certModel === null && $this->certModel !== null) { $this->certModel->setResultFinal(null); } // set the owning side of the relation if necessary if ($certModel !== null && $certModel->getResultFinal() !== $this) { $certModel->setResultFinal($this); } $this->certModel = $certModel; return $this; }}