From 5a877e545fe5848f69937180a928ae129c3f54aa Mon Sep 17 00:00:00 2001 From: Maxiser Date: Fri, 11 Oct 2024 16:47:43 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20des=20entit=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Entity/Fault.php | 20 +++++++++++ src/Entity/Intervention.php | 20 +++++++++++ src/Entity/Skill.php | 20 +++++++++++ src/Entity/Stock.php | 20 +++++++++++ src/Entity/User.php | 21 +++++++++++ src/Entity/Vehicle.php | 20 +++++++++++ src/Repository/FaultRepository.php | 43 +++++++++++++++++++++++ src/Repository/InterventionRepository.php | 43 +++++++++++++++++++++++ src/Repository/SkillRepository.php | 43 +++++++++++++++++++++++ src/Repository/StockRepository.php | 43 +++++++++++++++++++++++ src/Repository/UserRepository.php | 43 +++++++++++++++++++++++ src/Repository/VehicleRepository.php | 43 +++++++++++++++++++++++ 12 files changed, 379 insertions(+) create mode 100644 src/Entity/Fault.php create mode 100644 src/Entity/Intervention.php create mode 100644 src/Entity/Skill.php create mode 100644 src/Entity/Stock.php create mode 100644 src/Entity/User.php create mode 100644 src/Entity/Vehicle.php create mode 100644 src/Repository/FaultRepository.php create mode 100644 src/Repository/InterventionRepository.php create mode 100644 src/Repository/SkillRepository.php create mode 100644 src/Repository/StockRepository.php create mode 100644 src/Repository/UserRepository.php create mode 100644 src/Repository/VehicleRepository.php diff --git a/src/Entity/Fault.php b/src/Entity/Fault.php new file mode 100644 index 0000000..77a37fb --- /dev/null +++ b/src/Entity/Fault.php @@ -0,0 +1,20 @@ +id; + } +} diff --git a/src/Entity/Intervention.php b/src/Entity/Intervention.php new file mode 100644 index 0000000..ca9c4b7 --- /dev/null +++ b/src/Entity/Intervention.php @@ -0,0 +1,20 @@ +id; + } +} diff --git a/src/Entity/Skill.php b/src/Entity/Skill.php new file mode 100644 index 0000000..4181f12 --- /dev/null +++ b/src/Entity/Skill.php @@ -0,0 +1,20 @@ +id; + } +} diff --git a/src/Entity/Stock.php b/src/Entity/Stock.php new file mode 100644 index 0000000..adebdbf --- /dev/null +++ b/src/Entity/Stock.php @@ -0,0 +1,20 @@ +id; + } +} diff --git a/src/Entity/User.php b/src/Entity/User.php new file mode 100644 index 0000000..38ad03a --- /dev/null +++ b/src/Entity/User.php @@ -0,0 +1,21 @@ +id; + } +} diff --git a/src/Entity/Vehicle.php b/src/Entity/Vehicle.php new file mode 100644 index 0000000..8ef263c --- /dev/null +++ b/src/Entity/Vehicle.php @@ -0,0 +1,20 @@ +id; + } +} diff --git a/src/Repository/FaultRepository.php b/src/Repository/FaultRepository.php new file mode 100644 index 0000000..a40d1fa --- /dev/null +++ b/src/Repository/FaultRepository.php @@ -0,0 +1,43 @@ + + */ +class FaultRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Fault::class); + } + + // /** + // * @return Fault[] Returns an array of Fault objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('f') + // ->andWhere('f.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('f.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Fault + // { + // return $this->createQueryBuilder('f') + // ->andWhere('f.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/InterventionRepository.php b/src/Repository/InterventionRepository.php new file mode 100644 index 0000000..a6bcd03 --- /dev/null +++ b/src/Repository/InterventionRepository.php @@ -0,0 +1,43 @@ + + */ +class InterventionRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Intervention::class); + } + + // /** + // * @return Intervention[] Returns an array of Intervention objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('i') + // ->andWhere('i.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('i.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Intervention + // { + // return $this->createQueryBuilder('i') + // ->andWhere('i.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/SkillRepository.php b/src/Repository/SkillRepository.php new file mode 100644 index 0000000..dd659e5 --- /dev/null +++ b/src/Repository/SkillRepository.php @@ -0,0 +1,43 @@ + + */ +class SkillRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Skill::class); + } + + // /** + // * @return Skill[] Returns an array of Skill 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): ?Skill + // { + // return $this->createQueryBuilder('s') + // ->andWhere('s.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/StockRepository.php b/src/Repository/StockRepository.php new file mode 100644 index 0000000..5eb10ae --- /dev/null +++ b/src/Repository/StockRepository.php @@ -0,0 +1,43 @@ + + */ +class StockRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Stock::class); + } + + // /** + // * @return Stock[] Returns an array of Stock 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): ?Stock + // { + // return $this->createQueryBuilder('s') + // ->andWhere('s.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/UserRepository.php b/src/Repository/UserRepository.php new file mode 100644 index 0000000..b29153b --- /dev/null +++ b/src/Repository/UserRepository.php @@ -0,0 +1,43 @@ + + */ +class UserRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, User::class); + } + + // /** + // * @return User[] Returns an array of User objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('u') + // ->andWhere('u.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('u.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?User + // { + // return $this->createQueryBuilder('u') + // ->andWhere('u.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/VehicleRepository.php b/src/Repository/VehicleRepository.php new file mode 100644 index 0000000..b72665e --- /dev/null +++ b/src/Repository/VehicleRepository.php @@ -0,0 +1,43 @@ + + */ +class VehicleRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Vehicle::class); + } + + // /** + // * @return Vehicle[] Returns an array of Vehicle objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('v') + // ->andWhere('v.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('v.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Vehicle + // { + // return $this->createQueryBuilder('v') + // ->andWhere('v.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +}