CodeExplorer getFindByDateQueryBuilder example
$this->minDate =
new DateTime(self::MIN_DATE
);
$this->maxDate =
new DateTime(self::MAX_DATE
);
parent::
__construct($entityManager,
$class);
} /**
* {@inheritdoc}
*/
public function findByDate(?DateTimeInterface
$since, ?DateTimeInterface
$until): array
{ return $this->
getFindByDateQueryBuilder($since,
$until)->
getQuery()->
getResult();
} /**
* {@inheritdoc}
*/
public function deleteByDate(?DateTimeInterface
$since, ?DateTimeInterface
$until) { return $this->
getDeleteByDateQueryBuilder($since,
$until)->
getQuery()->
execute();
} public function getFindByDateQueryBuilder(?DateTimeInterface
$since, ?DateTimeInterface
$until): QueryBuilder
{