*/ #[ORM\ManyToMany(targetEntity: Machine::class, mappedBy: 'constructeurs')] private Collection $machines; /** * @var Collection */ #[ORM\ManyToMany(targetEntity: Composant::class, mappedBy: 'constructeurs')] private Collection $composants; /** * @var Collection */ #[ORM\ManyToMany(targetEntity: Piece::class, mappedBy: 'constructeurs')] private Collection $pieces; /** * @var Collection */ #[ORM\ManyToMany(targetEntity: Product::class, mappedBy: 'constructeurs')] private Collection $products; public function __construct() { $this->createdAt = new DateTimeImmutable(); $this->updatedAt = new DateTimeImmutable(); $this->machines = new ArrayCollection(); $this->composants = new ArrayCollection(); $this->pieces = new ArrayCollection(); $this->products = new ArrayCollection(); } public function getName(): ?string { return $this->name; } public function setName(string $name): static { $this->name = $name; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): static { $this->email = $email; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(?string $phone): static { $this->phone = $phone; return $this; } }