|
|
|
|
|
|
|
|
$query->andWhere('e.' . $params['dateField'] . ' <= :dateEnd')->setParameter('dateEnd', $params['dateEnd']); |
|
|
$query->andWhere('e.' . $params['dateField'] . ' <= :dateEnd')->setParameter('dateEnd', $params['dateEnd']); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (isset($params['weekNumber'])) { |
|
|
|
|
|
$query->andWhere('e.weekNumber = :weekNumber')->setParameter('weekNumber', $params['weekNumber']); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (isset($params['isCart'])) { |
|
|
if (isset($params['isCart'])) { |
|
|
$query = $this->filterOrderCart($query); |
|
|
$query = $this->filterOrderCart($query); |
|
|
} |
|
|
} |