From 57bd6c953ebf782ad68d89161a43672f39d398c4 Mon Sep 17 00:00:00 2001 From: ASTIER Yann Date: Thu, 21 Nov 2024 14:45:51 +0100 Subject: [PATCH] Regenerated Repositories --- src/Entity/AssignmentRepository.php | 42 +++++++++++++++++++++++++ src/Entity/CategoryRepository.php | 42 +++++++++++++++++++++++++ src/Entity/EmployeeSkillRepository.php | 42 +++++++++++++++++++++++++ src/Entity/IncidentRepository.php | 42 +++++++++++++++++++++++++ src/Entity/IncidentTypeRepository.php | 42 +++++++++++++++++++++++++ src/Entity/MissionRepository.php | 42 +++++++++++++++++++++++++ src/Entity/RepresentationRepository.php | 42 +++++++++++++++++++++++++ src/Entity/RequirementRepository.php | 42 +++++++++++++++++++++++++ src/Entity/RideRepository.php | 42 +++++++++++++++++++++++++ src/Entity/SkillRepository.php | 42 +++++++++++++++++++++++++ 10 files changed, 420 insertions(+) create mode 100644 src/Entity/AssignmentRepository.php create mode 100644 src/Entity/CategoryRepository.php create mode 100644 src/Entity/EmployeeSkillRepository.php create mode 100644 src/Entity/IncidentRepository.php create mode 100644 src/Entity/IncidentTypeRepository.php create mode 100644 src/Entity/MissionRepository.php create mode 100644 src/Entity/RepresentationRepository.php create mode 100644 src/Entity/RequirementRepository.php create mode 100644 src/Entity/RideRepository.php create mode 100644 src/Entity/SkillRepository.php diff --git a/src/Entity/AssignmentRepository.php b/src/Entity/AssignmentRepository.php new file mode 100644 index 0000000..a654ca9 --- /dev/null +++ b/src/Entity/AssignmentRepository.php @@ -0,0 +1,42 @@ + + */ +class AssignmentRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Assignment::class); + } + + // /** + // * @return Assignment[] Returns an array of Assignment objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('a') + // ->andWhere('a.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('a.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Assignment + // { + // return $this->createQueryBuilder('a') + // ->andWhere('a.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/CategoryRepository.php b/src/Entity/CategoryRepository.php new file mode 100644 index 0000000..5746437 --- /dev/null +++ b/src/Entity/CategoryRepository.php @@ -0,0 +1,42 @@ + + */ +class CategoryRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Category::class); + } + + // /** + // * @return Category[] Returns an array of Category objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('c') + // ->andWhere('c.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('c.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Category + // { + // return $this->createQueryBuilder('c') + // ->andWhere('c.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/EmployeeSkillRepository.php b/src/Entity/EmployeeSkillRepository.php new file mode 100644 index 0000000..ae3183e --- /dev/null +++ b/src/Entity/EmployeeSkillRepository.php @@ -0,0 +1,42 @@ + + */ +class EmployeeSkillRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, EmployeeSkill::class); + } + + // /** + // * @return EmployeeSkill[] Returns an array of EmployeeSkill objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('e') + // ->andWhere('e.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('e.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?EmployeeSkill + // { + // return $this->createQueryBuilder('e') + // ->andWhere('e.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/IncidentRepository.php b/src/Entity/IncidentRepository.php new file mode 100644 index 0000000..3dc1899 --- /dev/null +++ b/src/Entity/IncidentRepository.php @@ -0,0 +1,42 @@ + + */ +class IncidentRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Incident::class); + } + + // /** + // * @return Incident[] Returns an array of Incident 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): ?Incident + // { + // return $this->createQueryBuilder('i') + // ->andWhere('i.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/IncidentTypeRepository.php b/src/Entity/IncidentTypeRepository.php new file mode 100644 index 0000000..6bfeac9 --- /dev/null +++ b/src/Entity/IncidentTypeRepository.php @@ -0,0 +1,42 @@ + + */ +class IncidentTypeRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, IncidentType::class); + } + + // /** + // * @return IncidentType[] Returns an array of IncidentType 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): ?IncidentType + // { + // return $this->createQueryBuilder('i') + // ->andWhere('i.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/MissionRepository.php b/src/Entity/MissionRepository.php new file mode 100644 index 0000000..5587202 --- /dev/null +++ b/src/Entity/MissionRepository.php @@ -0,0 +1,42 @@ + + */ +class MissionRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Mission::class); + } + + // /** + // * @return Mission[] Returns an array of Mission objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('m') + // ->andWhere('m.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('m.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Mission + // { + // return $this->createQueryBuilder('m') + // ->andWhere('m.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/RepresentationRepository.php b/src/Entity/RepresentationRepository.php new file mode 100644 index 0000000..50a765a --- /dev/null +++ b/src/Entity/RepresentationRepository.php @@ -0,0 +1,42 @@ + + */ +class RepresentationRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Representation::class); + } + + // /** + // * @return Representation[] Returns an array of Representation objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('r') + // ->andWhere('r.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('r.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Representation + // { + // return $this->createQueryBuilder('r') + // ->andWhere('r.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/RequirementRepository.php b/src/Entity/RequirementRepository.php new file mode 100644 index 0000000..1a3ef66 --- /dev/null +++ b/src/Entity/RequirementRepository.php @@ -0,0 +1,42 @@ + + */ +class RequirementRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Requirement::class); + } + + // /** + // * @return Requirement[] Returns an array of Requirement objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('r') + // ->andWhere('r.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('r.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Requirement + // { + // return $this->createQueryBuilder('r') + // ->andWhere('r.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/RideRepository.php b/src/Entity/RideRepository.php new file mode 100644 index 0000000..0f032fc --- /dev/null +++ b/src/Entity/RideRepository.php @@ -0,0 +1,42 @@ + + */ +class RideRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Ride::class); + } + + // /** + // * @return Ride[] Returns an array of Ride objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('r') + // ->andWhere('r.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('r.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?Ride + // { + // return $this->createQueryBuilder('r') + // ->andWhere('r.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Entity/SkillRepository.php b/src/Entity/SkillRepository.php new file mode 100644 index 0000000..004b95c --- /dev/null +++ b/src/Entity/SkillRepository.php @@ -0,0 +1,42 @@ + + */ +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() + // ; + // } +}