From 83a886c134ed8fe90564e830f0b3cf7e016eb945 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Sun, 5 Jan 2025 06:13:39 +0000 Subject: [PATCH] add repositories --- .../StandardNoteMemberRepository.php | 43 +++++++++++++++++++ src/Repository/VisitNoteMembersRepository.php | 43 +++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 src/Repository/StandardNoteMemberRepository.php create mode 100644 src/Repository/VisitNoteMembersRepository.php diff --git a/src/Repository/StandardNoteMemberRepository.php b/src/Repository/StandardNoteMemberRepository.php new file mode 100644 index 0000000..d33a34b --- /dev/null +++ b/src/Repository/StandardNoteMemberRepository.php @@ -0,0 +1,43 @@ + + */ +class StandardNoteMemberRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, StandardNoteMember::class); + } + + // /** + // * @return StandardNoteMember[] Returns an array of StandardNoteMember 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): ?StandardNoteMember + // { + // return $this->createQueryBuilder('s') + // ->andWhere('s.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +} diff --git a/src/Repository/VisitNoteMembersRepository.php b/src/Repository/VisitNoteMembersRepository.php new file mode 100644 index 0000000..4dd452d --- /dev/null +++ b/src/Repository/VisitNoteMembersRepository.php @@ -0,0 +1,43 @@ + + */ +class VisitNoteMembersRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, VisitNoteMembers::class); + } + + // /** + // * @return VisitNoteMembers[] Returns an array of VisitNoteMembers 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): ?VisitNoteMembers + // { + // return $this->createQueryBuilder('v') + // ->andWhere('v.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +}