Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
src
/
Entity
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/src/Entity/TitleCaracteristique.php
<?php namespace App\Entity; use App\Repository\TitleCaracteristiqueRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=TitleCaracteristiqueRepository::class) */ class TitleCaracteristique { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="titleCaracteristique") * @ORM\JoinColumn(nullable=false) */ private $product; /** * @ORM\OneToMany(targetEntity=Caracteristique::class, mappedBy="titleCaracteristique") */ private $caracteristiques; public function __construct() { $this->caracteristiques = new ArrayCollection(); } 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 getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } /** * @return Collection|Caracteristique[] */ public function getCaracteristiques(): Collection { return $this->caracteristiques; } public function addCaracteristique(Caracteristique $caracteristique): self { if (!$this->caracteristiques->contains($caracteristique)) { $this->caracteristiques[] = $caracteristique; $caracteristique->setTitleCaracteristique($this); } return $this; } public function removeCaracteristique(Caracteristique $caracteristique): self { if ($this->caracteristiques->removeElement($caracteristique)) { // set the owning side to null (unless already changed) if ($caracteristique->getTitleCaracteristique() === $this) { $caracteristique->setTitleCaracteristique(null); } } return $this; } }