From de240b099fecc28950c4e89f20d9cb0b86365693 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 2 Apr 2021 17:50:45 +0200 Subject: [PATCH] remove commented code in new repositories --- .../AccompanyingPeriod/CommentRepository.php | 30 +------------------ .../AccompanyingPeriod/OriginRepository.php | 29 +----------------- .../AccompanyingPeriod/ResourceRepository.php | 28 ----------------- ...ompanyingPeriodParticipationRepository.php | 28 ----------------- .../AccompanyingPeriodRepository.php | 28 ----------------- 5 files changed, 2 insertions(+), 141 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/CommentRepository.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/CommentRepository.php index 8abda6903..b41e77591 100644 --- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/CommentRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/CommentRepository.php @@ -38,33 +38,5 @@ class CommentRepository extends ServiceEntityRepository { parent::__construct($registry, Comment::class); } - - // /** - // * @return Comment[] Returns an array of Comment objects - // */ - /* - public function findByExampleField($value) - { - return $this->createQueryBuilder('c') - ->andWhere('c.exampleField = :val') - ->setParameter('val', $value) - ->orderBy('c.id', 'ASC') - ->setMaxResults(10) - ->getQuery() - ->getResult() - ; - } - */ - - /* - public function findOneBySomeField($value): ?Comment - { - return $this->createQueryBuilder('c') - ->andWhere('c.exampleField = :val') - ->setParameter('val', $value) - ->getQuery() - ->getOneOrNullResult() - ; - } - */ + } diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/OriginRepository.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/OriginRepository.php index c2283b859..6a5b28901 100644 --- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/OriginRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/OriginRepository.php @@ -19,6 +19,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ + namespace Chill\PersonBundle\Repository\AccompanyingPeriod; use Chill\PersonBundle\Entity\AccompanyingPeriod\Origin; @@ -38,32 +39,4 @@ class OriginRepository extends ServiceEntityRepository parent::__construct($registry, Origin::class); } - // /** - // * @return Origin[] Returns an array of Origin objects - // */ - /* - public function findByExampleField($value) - { - return $this->createQueryBuilder('o') - ->andWhere('o.exampleField = :val') - ->setParameter('val', $value) - ->orderBy('o.id', 'ASC') - ->setMaxResults(10) - ->getQuery() - ->getResult() - ; - } - */ - - /* - public function findOneBySomeField($value): ?Origin - { - return $this->createQueryBuilder('o') - ->andWhere('o.exampleField = :val') - ->setParameter('val', $value) - ->getQuery() - ->getOneOrNullResult() - ; - } - */ } diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/ResourceRepository.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/ResourceRepository.php index 0507d9b6d..46eaaaaa0 100644 --- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/ResourceRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/ResourceRepository.php @@ -39,32 +39,4 @@ class ResourceRepository extends ServiceEntityRepository parent::__construct($registry, Resource::class); } - // /** - // * @return Resource[] Returns an array of Resource objects - // */ - /* - public function findByExampleField($value) - { - return $this->createQueryBuilder('r') - ->andWhere('r.exampleField = :val') - ->setParameter('val', $value) - ->orderBy('r.id', 'ASC') - ->setMaxResults(10) - ->getQuery() - ->getResult() - ; - } - */ - - /* - public function findOneBySomeField($value): ?Resource - { - return $this->createQueryBuilder('r') - ->andWhere('r.exampleField = :val') - ->setParameter('val', $value) - ->getQuery() - ->getOneOrNullResult() - ; - } - */ } diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodParticipationRepository.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodParticipationRepository.php index 8d767b6ab..fbe957ecf 100644 --- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodParticipationRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodParticipationRepository.php @@ -39,32 +39,4 @@ class AccompanyingPeriodParticipationRepository extends ServiceEntityRepository parent::__construct($registry, AccompanyingPeriodParticipation::class); } - // /** - // * @return AccompanyingPeriodParticipation[] Returns an array of AccompanyingPeriodParticipation objects - // */ - /* - public function findByExampleField($value) - { - return $this->createQueryBuilder('a') - ->andWhere('a.exampleField = :val') - ->setParameter('val', $value) - ->orderBy('a.id', 'ASC') - ->setMaxResults(10) - ->getQuery() - ->getResult() - ; - } - */ - - /* - public function findOneBySomeField($value): ?AccompanyingPeriodParticipation - { - return $this->createQueryBuilder('a') - ->andWhere('a.exampleField = :val') - ->setParameter('val', $value) - ->getQuery() - ->getOneOrNullResult() - ; - } - */ } diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodRepository.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodRepository.php index 009793bdb..4bc9f92db 100644 --- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodRepository.php @@ -39,32 +39,4 @@ class AccompanyingPeriodRepository extends ServiceEntityRepository parent::__construct($registry, AccompanyingPeriod::class); } - // /** - // * @return AccompanyingPeriod[] Returns an array of AccompanyingPeriod objects - // */ - /* - public function findByExampleField($value) - { - return $this->createQueryBuilder('a') - ->andWhere('a.exampleField = :val') - ->setParameter('val', $value) - ->orderBy('a.id', 'ASC') - ->setMaxResults(10) - ->getQuery() - ->getResult() - ; - } - */ - - /* - public function findOneBySomeField($value): ?AccompanyingPeriod - { - return $this->createQueryBuilder('a') - ->andWhere('a.exampleField = :val') - ->setParameter('val', $value) - ->getQuery() - ->getOneOrNullResult() - ; - } - */ }