src/Entity/Parcours.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParcoursRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ParcoursRepository::class)
  7.  */
  8. class Parcours
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\OneToOne(targetEntity=IctusCommande::class, cascade={"persist", "remove"})
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $ictusCommande;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Livraison::class, inversedBy="parcours")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $livraison;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Adresse::class, inversedBy="parcours")
  28.      * @ORM\JoinColumn(nullable=false)
  29.      */
  30.     private $adresse;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getIctusCommande(): ?IctusCommande
  36.     {
  37.         return $this->ictusCommande;
  38.     }
  39.     public function setIctusCommande(IctusCommande $ictusCommande): self
  40.     {
  41.         $this->ictusCommande $ictusCommande;
  42.         return $this;
  43.     }
  44.     public function getLivraison(): ?Livraison
  45.     {
  46.         return $this->livraison;
  47.     }
  48.     public function setLivraison(?Livraison $livraison): self
  49.     {
  50.         $this->livraison $livraison;
  51.         return $this;
  52.     }
  53.     public function getAdresse(): ?Adresse
  54.     {
  55.         return $this->adresse;
  56.     }
  57.     public function setAdresse(?Adresse $adresse): self
  58.     {
  59.         $this->adresse $adresse;
  60.         return $this;
  61.     }
  62. }