|
|
|
|
|
|
|
|
$query->andWhere('e.weekNumber = :weekNumber'); |
|
|
$query->andWhere('e.weekNumber = :weekNumber'); |
|
|
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL'); |
|
|
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL'); |
|
|
$query->setParameter('weekNumber', $weekNumber); |
|
|
$query->setParameter('weekNumber', $weekNumber); |
|
|
$query->orderBy('e.validationDate', 'DESC'); |
|
|
|
|
|
|
|
|
$query->orderBy('e.weekId', 'DESC'); |
|
|
$query->setMaxResults(1); |
|
|
$query->setMaxResults(1); |
|
|
|
|
|
|
|
|
return $query->getQuery()->getOneOrNullResult(); |
|
|
return $query->getQuery()->getOneOrNullResult(); |