Pārlūkot izejas kodu

weekId error

feature/export_comptable
Fab pirms 4 gadiem
vecāks
revīzija
3481b192ef
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      ShopBundle/Repository/OrderShopRepository.php

+ 1
- 1
ShopBundle/Repository/OrderShopRepository.php Parādīt failu

@@ -243,7 +243,7 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query->andWhere('e.weekNumber = :weekNumber');
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->setParameter('weekNumber', $weekNumber);
$query->orderBy('e.validationDate', 'DESC');
$query->orderBy('e.weekId', 'DESC');
$query->setMaxResults(1);

return $query->getQuery()->getOneOrNullResult();

Notiek ielāde…
Atcelt
Saglabāt