diff --git a/src/Bundle/ChillBudgetBundle/Repository/ChargeRepository.php b/src/Bundle/ChillBudgetBundle/Repository/ChargeRepository.php index 19592f2f9..1005d50f7 100644 --- a/src/Bundle/ChillBudgetBundle/Repository/ChargeRepository.php +++ b/src/Bundle/ChillBudgetBundle/Repository/ChargeRepository.php @@ -24,25 +24,6 @@ use Doctrine\ORM\EntityRepository; */ class ChargeRepository extends EntityRepository { - // public function findByPersonAndDate(Person $person, DateTime $date, $sort = null) - // { - // $qb = $this->createQueryBuilder('c'); - - // $qb->where('c.person = :person') - // ->andWhere('c.startDate < :date') - // ->andWhere('c.startDate < :date OR c.startDate IS NULL'); - - // if (null !== $sort) { - // $qb->orderBy($sort); - // } - - // $qb->setParameters([ - // 'person' => $person, - // 'date' => $date, - // ]); - - // return $qb->getQuery()->getResult(); - // } public function findByEntityAndDate($entity, DateTime $date, $sort = null) { @@ -66,18 +47,4 @@ class ChargeRepository extends EntityRepository return $qb->getQuery()->getResult(); } - // public function findByHouseholdAndDate(Household $household, DateTime $date) - // { - // $qb = $this->createQueryBuilder('c'); - - // $qb->where('c.household = :household') - // ->andWhere('c.startDate < :date OR c.startDate IS NULL'); - - // $qb->setParameters([ - // 'person' => $household, - // 'date' => $date, - // ]); - - // return $qb->getQuery()->getResult(); - // } } diff --git a/src/Bundle/ChillBudgetBundle/Repository/ResourceRepository.php b/src/Bundle/ChillBudgetBundle/Repository/ResourceRepository.php index 22f96ad65..8ba2afc2a 100644 --- a/src/Bundle/ChillBudgetBundle/Repository/ResourceRepository.php +++ b/src/Bundle/ChillBudgetBundle/Repository/ResourceRepository.php @@ -23,10 +23,6 @@ use Doctrine\ORM\EntityRepository; */ class ResourceRepository extends EntityRepository { - // public function findByEntity($entity) - // { - - // } public function findByEntityAndDate($entity, DateTime $date, $sort = null) {