diff --git a/Back_end/src/Entity/OrdreTournee.php b/Back_end/src/Entity/OrdreTournee.php index 3e17af52e0e9585702a0bfbd9d37b80d2f5d2991..1e558945c7854b458a1c81082317f7bd92826bb1 100644 --- a/Back_end/src/Entity/OrdreTournee.php +++ b/Back_end/src/Entity/OrdreTournee.php @@ -16,10 +16,14 @@ class OrdreTournee #[ORM\Column] private ?int $numOrdre = null; - #[ORM\ManyToOne(inversedBy: 'test')] + #[ORM\ManyToOne] #[ORM\JoinColumn(nullable: false)] private ?Tournee $tournee_id = null; + #[ORM\ManyToOne] + #[ORM\JoinColumn(nullable: false)] + private ?PointDeDepot $point_depot_id = null; + public function getId(): ?int { return $this->id; @@ -48,4 +52,16 @@ class OrdreTournee return $this; } + + public function getPointDepotId(): ?PointDeDepot + { + return $this->point_depot_id; + } + + public function setPointDepotId(?PointDeDepot $point_depot_id): static + { + $this->point_depot_id = $point_depot_id; + + return $this; + } } diff --git a/Back_end/src/Entity/Tournee.php b/Back_end/src/Entity/Tournee.php index 3d1648c217ffdcaaf9ea3da078449bd899c867ff..506dc110d6c41cbacb39ea0dd638ef40e920e51d 100644 --- a/Back_end/src/Entity/Tournee.php +++ b/Back_end/src/Entity/Tournee.php @@ -14,23 +14,8 @@ class Tournee #[ORM\Column] private ?int $id = null; - #[ORM\Column(type: Types::DATE_MUTABLE)] - private ?\DateTimeInterface $jourPreparation = null; - public function getId(): ?int { return $this->id; } - - public function getJourPreparation(): ?\DateTimeInterface - { - return $this->jourPreparation; - } - - public function setJourPreparation(\DateTimeInterface $jourPreparation): static - { - $this->jourPreparation = $jourPreparation; - - return $this; - } } diff --git a/README.md b/README.md index dfb4859eb35f026e5b61fdc6f7bf641a71162104..d9e3cac090673d66b9a19f460d2d0b515dee1df4 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ Dans notre cas, nous avons choisi Symfony. Donc, nous avons besoin de 3 containe Un container adminer a été ajouté pour pouvoir gérer la base de données. -Lien vers la documentation swagger de l'api : http://localhost:8080/api \ No newline at end of file +Lien vers la documentation swagger de l'api : http://localhost:8080/api, après avoir lancé le projet avec `docker-compose up -d`. \ No newline at end of file