Pārlūkot izejas kodu

Merge branch 'develop'

master
Fab pirms 4 gadiem
vecāks
revīzija
55d1adbfeb
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      ShopBundle/Repository/OrderShopRepository.php

+ 2
- 2
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();
@@ -255,7 +255,7 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->orderBy('e.validationDate', 'DESC');
$query->orderBy('e.idValidOrder', 'DESC');
$query->setMaxResults(1);

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

Notiek ielāde…
Atcelt
Saglabāt