*/ #[ORM\ManyToMany(targetEntity: Tables::class, mappedBy: 'Clients')] private Collection $tables; /** * @var Collection */ #[ORM\ManyToMany(targetEntity: Commandes::class, mappedBy: 'Client')] private Collection $commandes; public function __construct() { $this->tables = new ArrayCollection(); $this->commandes = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getPrenom(): ?string { return $this->Prenom; } public function setPrenom(string $Prenom): static { $this->Prenom = $Prenom; return $this; } public function getNom(): ?string { return $this->Nom; } public function setNom(string $Nom): static { $this->Nom = $Nom; return $this; } public function getEmail(): ?string { return $this->Email; } public function setEmail(string $Email): static { $this->Email = $Email; return $this; } public function getTelephone(): ?string { return $this->Telephone; } public function setTelephone(string $Telephone): static { $this->Telephone = $Telephone; return $this; } /** * @return Collection */ public function getTables(): Collection { return $this->tables; } public function addTable(Tables $tables): static { if (!$this->tables->contains($tables)) { $this->tables->add($tables); } return $this; } public function removeTable(Tables $tables): static { $this->tables->removeElement($tables); return $this; } /** * @return Collection */ public function getCommandes(): Collection { return $this->commandes; } public function addCommande(Commandes $commande): static { if (!$this->commandes->contains($commande)) { $this->commandes->add($commande); $commande->addClient($this); } return $this; } public function removeCommande(Commandes $commande): static { if ($this->commandes->removeElement($commande)) { $commande->removeClient($this); } return $this; } }