remove comments

This commit is contained in:
Julie Lenaerts 2022-03-02 11:43:55 +01:00
parent 86de8137e4
commit 0648154ba1
2 changed files with 0 additions and 37 deletions

View File

@ -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();
// }
}

View File

@ -23,10 +23,6 @@ use Doctrine\ORM\EntityRepository;
*/
class ResourceRepository extends EntityRepository
{
// public function findByEntity($entity)
// {
// }
public function findByEntityAndDate($entity, DateTime $date, $sort = null)
{