mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
remove comments
This commit is contained in:
parent
86de8137e4
commit
0648154ba1
@ -24,25 +24,6 @@ use Doctrine\ORM\EntityRepository;
|
|||||||
*/
|
*/
|
||||||
class ChargeRepository extends 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)
|
public function findByEntityAndDate($entity, DateTime $date, $sort = null)
|
||||||
{
|
{
|
||||||
@ -66,18 +47,4 @@ class ChargeRepository extends EntityRepository
|
|||||||
return $qb->getQuery()->getResult();
|
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();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,6 @@ use Doctrine\ORM\EntityRepository;
|
|||||||
*/
|
*/
|
||||||
class ResourceRepository extends EntityRepository
|
class ResourceRepository extends EntityRepository
|
||||||
{
|
{
|
||||||
// public function findByEntity($entity)
|
|
||||||
// {
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
public function findByEntityAndDate($entity, DateTime $date, $sort = null)
|
public function findByEntityAndDate($entity, DateTime $date, $sort = null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user