From 4acb54e74861fb12fc12e9754228700d487c3d00 Mon Sep 17 00:00:00 2001 From: Matteo Date: Mon, 23 Feb 2026 14:33:47 +0100 Subject: [PATCH] feat : plan du site (WIP) --- .../BuildingCasePositionRepository.php | 45 +++++++++++++++++++ src/Repository/BuildingCaseRepository.php | 45 +++++++++++++++++++ src/Repository/BuildingLayoutRepository.php | 45 +++++++++++++++++++ src/Repository/StatutRepository.php | 45 +++++++++++++++++++ 4 files changed, 180 insertions(+) create mode 100644 src/Repository/BuildingCasePositionRepository.php create mode 100644 src/Repository/BuildingCaseRepository.php create mode 100644 src/Repository/BuildingLayoutRepository.php create mode 100644 src/Repository/StatutRepository.php diff --git a/src/Repository/BuildingCasePositionRepository.php b/src/Repository/BuildingCasePositionRepository.php new file mode 100644 index 0000000..f02008f --- /dev/null +++ b/src/Repository/BuildingCasePositionRepository.php @@ -0,0 +1,45 @@ + + */ +class BuildingCasePositionRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, BuildingCasePosition::class); + } + + // /** + // * @return BuildingCasePosition[] Returns an array of BuildingCasePosition objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('b') + // ->andWhere('b.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('b.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?BuildingCasePosition + // { + // return $this->createQueryBuilder('b') + // ->andWhere('b.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/BuildingCaseRepository.php b/src/Repository/BuildingCaseRepository.php new file mode 100644 index 0000000..9e84dc7 --- /dev/null +++ b/src/Repository/BuildingCaseRepository.php @@ -0,0 +1,45 @@ + + */ +class BuildingCaseRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, BuildingCase::class); + } + + // /** + // * @return BuildingCase[] Returns an array of BuildingCase objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('b') + // ->andWhere('b.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('b.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?BuildingCase + // { + // return $this->createQueryBuilder('b') + // ->andWhere('b.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/BuildingLayoutRepository.php b/src/Repository/BuildingLayoutRepository.php new file mode 100644 index 0000000..971eca4 --- /dev/null +++ b/src/Repository/BuildingLayoutRepository.php @@ -0,0 +1,45 @@ + + */ +class BuildingLayoutRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, BuildingLayout::class); + } + + // /** + // * @return BuildingLayout[] Returns an array of BuildingLayout objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('b') + // ->andWhere('b.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('b.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?BuildingLayout + // { + // return $this->createQueryBuilder('b') + // ->andWhere('b.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/StatutRepository.php b/src/Repository/StatutRepository.php new file mode 100644 index 0000000..b783ad0 --- /dev/null +++ b/src/Repository/StatutRepository.php @@ -0,0 +1,45 @@ + + */ +class StatutRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Statut::class); + } + + // /** + // * @return Statut[] Returns an array of Statut objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('s') + // ->andWhere('s.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('s.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Statut + // { + // return $this->createQueryBuilder('s') + // ->andWhere('s.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +}