From 2d33c97449d0787b736f125aadbd0553a71e2838 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Tue, 31 Mar 2026 14:09:07 +0200 Subject: [PATCH] feat(constructeur) : add 4 ConstructeurLink pivot entities with supplierReference Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Entity/ComposantConstructeurLink.php | 101 ++++++++++++++++++ src/Entity/MachineConstructeurLink.php | 101 ++++++++++++++++++ src/Entity/PieceConstructeurLink.php | 101 ++++++++++++++++++ src/Entity/ProductConstructeurLink.php | 101 ++++++++++++++++++ .../ComposantConstructeurLinkRepository.php | 20 ++++ .../MachineConstructeurLinkRepository.php | 20 ++++ .../PieceConstructeurLinkRepository.php | 20 ++++ .../ProductConstructeurLinkRepository.php | 20 ++++ 8 files changed, 484 insertions(+) create mode 100644 src/Entity/ComposantConstructeurLink.php create mode 100644 src/Entity/MachineConstructeurLink.php create mode 100644 src/Entity/PieceConstructeurLink.php create mode 100644 src/Entity/ProductConstructeurLink.php create mode 100644 src/Repository/ComposantConstructeurLinkRepository.php create mode 100644 src/Repository/MachineConstructeurLinkRepository.php create mode 100644 src/Repository/PieceConstructeurLinkRepository.php create mode 100644 src/Repository/ProductConstructeurLinkRepository.php diff --git a/src/Entity/ComposantConstructeurLink.php b/src/Entity/ComposantConstructeurLink.php new file mode 100644 index 0000000..42ccb6f --- /dev/null +++ b/src/Entity/ComposantConstructeurLink.php @@ -0,0 +1,101 @@ +createdAt = new DateTimeImmutable(); + $this->updatedAt = new DateTimeImmutable(); + } + + public function getComposant(): Composant + { + return $this->composant; + } + + public function setComposant(Composant $composant): static + { + $this->composant = $composant; + + return $this; + } + + public function getConstructeur(): Constructeur + { + return $this->constructeur; + } + + public function setConstructeur(Constructeur $constructeur): static + { + $this->constructeur = $constructeur; + + return $this; + } + + public function getSupplierReference(): ?string + { + return $this->supplierReference; + } + + public function setSupplierReference(?string $supplierReference): static + { + $this->supplierReference = $supplierReference; + + return $this; + } +} diff --git a/src/Entity/MachineConstructeurLink.php b/src/Entity/MachineConstructeurLink.php new file mode 100644 index 0000000..bf9c0fe --- /dev/null +++ b/src/Entity/MachineConstructeurLink.php @@ -0,0 +1,101 @@ +createdAt = new DateTimeImmutable(); + $this->updatedAt = new DateTimeImmutable(); + } + + public function getMachine(): Machine + { + return $this->machine; + } + + public function setMachine(Machine $machine): static + { + $this->machine = $machine; + + return $this; + } + + public function getConstructeur(): Constructeur + { + return $this->constructeur; + } + + public function setConstructeur(Constructeur $constructeur): static + { + $this->constructeur = $constructeur; + + return $this; + } + + public function getSupplierReference(): ?string + { + return $this->supplierReference; + } + + public function setSupplierReference(?string $supplierReference): static + { + $this->supplierReference = $supplierReference; + + return $this; + } +} diff --git a/src/Entity/PieceConstructeurLink.php b/src/Entity/PieceConstructeurLink.php new file mode 100644 index 0000000..c18a513 --- /dev/null +++ b/src/Entity/PieceConstructeurLink.php @@ -0,0 +1,101 @@ +createdAt = new DateTimeImmutable(); + $this->updatedAt = new DateTimeImmutable(); + } + + public function getPiece(): Piece + { + return $this->piece; + } + + public function setPiece(Piece $piece): static + { + $this->piece = $piece; + + return $this; + } + + public function getConstructeur(): Constructeur + { + return $this->constructeur; + } + + public function setConstructeur(Constructeur $constructeur): static + { + $this->constructeur = $constructeur; + + return $this; + } + + public function getSupplierReference(): ?string + { + return $this->supplierReference; + } + + public function setSupplierReference(?string $supplierReference): static + { + $this->supplierReference = $supplierReference; + + return $this; + } +} diff --git a/src/Entity/ProductConstructeurLink.php b/src/Entity/ProductConstructeurLink.php new file mode 100644 index 0000000..fc48c74 --- /dev/null +++ b/src/Entity/ProductConstructeurLink.php @@ -0,0 +1,101 @@ +createdAt = new DateTimeImmutable(); + $this->updatedAt = new DateTimeImmutable(); + } + + public function getProduct(): Product + { + return $this->product; + } + + public function setProduct(Product $product): static + { + $this->product = $product; + + return $this; + } + + public function getConstructeur(): Constructeur + { + return $this->constructeur; + } + + public function setConstructeur(Constructeur $constructeur): static + { + $this->constructeur = $constructeur; + + return $this; + } + + public function getSupplierReference(): ?string + { + return $this->supplierReference; + } + + public function setSupplierReference(?string $supplierReference): static + { + $this->supplierReference = $supplierReference; + + return $this; + } +} diff --git a/src/Repository/ComposantConstructeurLinkRepository.php b/src/Repository/ComposantConstructeurLinkRepository.php new file mode 100644 index 0000000..cb57661 --- /dev/null +++ b/src/Repository/ComposantConstructeurLinkRepository.php @@ -0,0 +1,20 @@ + + */ +class ComposantConstructeurLinkRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, ComposantConstructeurLink::class); + } +} diff --git a/src/Repository/MachineConstructeurLinkRepository.php b/src/Repository/MachineConstructeurLinkRepository.php new file mode 100644 index 0000000..eb7e652 --- /dev/null +++ b/src/Repository/MachineConstructeurLinkRepository.php @@ -0,0 +1,20 @@ + + */ +class MachineConstructeurLinkRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, MachineConstructeurLink::class); + } +} diff --git a/src/Repository/PieceConstructeurLinkRepository.php b/src/Repository/PieceConstructeurLinkRepository.php new file mode 100644 index 0000000..9ef5f72 --- /dev/null +++ b/src/Repository/PieceConstructeurLinkRepository.php @@ -0,0 +1,20 @@ + + */ +class PieceConstructeurLinkRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, PieceConstructeurLink::class); + } +} diff --git a/src/Repository/ProductConstructeurLinkRepository.php b/src/Repository/ProductConstructeurLinkRepository.php new file mode 100644 index 0000000..a4727de --- /dev/null +++ b/src/Repository/ProductConstructeurLinkRepository.php @@ -0,0 +1,20 @@ + + */ +class ProductConstructeurLinkRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, ProductConstructeurLink::class); + } +}