src/Entity/CommandeDetails.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommandeDetailsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassCommandeDetailsRepository::class)]
  8. class CommandeDetails
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column]
  15.     private ?int $produit_qtt_cmd null;
  16.     #[ORM\ManyToOne(inversedBy'commandeDetails')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?Commande $commande null;
  19.     #[ORM\ManyToOne(inversedBy'commandeDetails')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?Produit $produit null;
  22.     #[ORM\ManyToOne(inversedBy'commandeDetails')]
  23.     private ?ProduitVariant $produitVariant null;
  24. // ici productVariant
  25.     
  26.     public function __construct()
  27.     {
  28.     }
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getProduitQttCmd(): ?int
  34.     {
  35.         return $this->produit_qtt_cmd;
  36.     }
  37.     public function setProduitQttCmd(int $produit_qtt_cmd): self
  38.     {
  39.         $this->produit_qtt_cmd $produit_qtt_cmd;
  40.         return $this;
  41.     }
  42.     public function getCommande(): ?Commande
  43.     {
  44.         return $this->commande;
  45.     }
  46.     public function setCommande(?Commande $commande): self
  47.     {
  48.         $this->commande $commande;
  49.         return $this;
  50.     }
  51.     public function getProduit(): ?Produit
  52.     {
  53.         return $this->produit;
  54.     }
  55.     public function setProduit(?Produit $produit): self
  56.     {
  57.         $this->produit $produit;
  58.         return $this;
  59.     }
  60.     public function getProduitVariant(): ?ProduitVariant
  61.     {
  62.         return $this->produitVariant;
  63.     }
  64.     public function setProduitVariant(?ProduitVariant $produitVariant): static
  65.     {
  66.         $this->produitVariant $produitVariant;
  67.         return $this;
  68.     }
  69. }