*/ #[ORM\OneToMany(mappedBy: 'parentLink', targetEntity: MachineComponentLink::class)] private Collection $childLinks; /** * @var Collection */ #[ORM\OneToMany(mappedBy: 'parentLink', targetEntity: MachinePieceLink::class)] private Collection $pieceLinks; /** * @var Collection */ #[ORM\OneToMany(mappedBy: 'parentComponentLink', targetEntity: MachineProductLink::class)] private Collection $productLinks; #[ORM\Column(type: Types::STRING, length: 255, nullable: true, name: 'nameOverride')] private ?string $nameOverride = null; #[ORM\Column(type: Types::STRING, length: 255, nullable: true, name: 'referenceOverride')] private ?string $referenceOverride = null; #[ORM\Column(type: Types::DECIMAL, precision: 10, scale: 2, nullable: true, name: 'prixOverride')] private ?string $prixOverride = null; #[ORM\Column(type: Types::DATETIME_IMMUTABLE, name: 'createdAt')] private DateTimeImmutable $createdAt; #[ORM\Column(type: Types::DATETIME_IMMUTABLE, name: 'updatedAt')] private DateTimeImmutable $updatedAt; public function __construct() { $this->createdAt = new DateTimeImmutable(); $this->updatedAt = new DateTimeImmutable(); $this->childLinks = new ArrayCollection(); $this->pieceLinks = new ArrayCollection(); $this->productLinks = new ArrayCollection(); } public function getMachine(): Machine { return $this->machine; } public function setMachine(Machine $machine): static { $this->machine = $machine; return $this; } public function getComposant(): Composant { return $this->composant; } public function setComposant(Composant $composant): static { $this->composant = $composant; return $this; } public function getParentLink(): ?MachineComponentLink { return $this->parentLink; } public function setParentLink(?MachineComponentLink $parentLink): static { $this->parentLink = $parentLink; return $this; } public function getNameOverride(): ?string { return $this->nameOverride; } public function setNameOverride(?string $nameOverride): static { $this->nameOverride = $nameOverride; return $this; } public function getReferenceOverride(): ?string { return $this->referenceOverride; } public function setReferenceOverride(?string $referenceOverride): static { $this->referenceOverride = $referenceOverride; return $this; } public function getPrixOverride(): ?string { return $this->prixOverride; } public function setPrixOverride(?string $prixOverride): static { $this->prixOverride = $prixOverride; return $this; } }