'exact', 'constructeur' => 'exact'])] class ComposantConstructeurLink { use CuidEntityTrait; #[ORM\Id] #[ORM\Column(type: Types::STRING, length: 36)] private ?string $id = null; #[ORM\ManyToOne(targetEntity: Composant::class, inversedBy: 'constructeurLinks')] #[ORM\JoinColumn(name: 'composantId', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')] private Composant $composant; #[ORM\ManyToOne(targetEntity: Constructeur::class, inversedBy: 'composantLinks')] #[ORM\JoinColumn(name: 'constructeurId', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')] private Constructeur $constructeur; #[ORM\Column(type: Types::STRING, length: 255, nullable: true, name: 'supplierReference')] private ?string $supplierReference = 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(); } public function getComposant(): Composant { return $this->composant; } public function setComposant(Composant $composant): static { $this->composant = $composant; return $this; } public function getConstructeur(): Constructeur { return $this->constructeur; } public function setConstructeur(Constructeur $constructeur): static { $this->constructeur = $constructeur; return $this; } public function getSupplierReference(): ?string { return $this->supplierReference; } public function setSupplierReference(?string $supplierReference): static { $this->supplierReference = $supplierReference; return $this; } }