$result = $this->findByMerchantQuery() | $result = $this->findByMerchantQuery() | ||||
->orderBy('e.date', 'DESC') ; | ->orderBy('e.date', 'DESC') ; | ||||
$result->andWhere('e.status = 1') ; | |||||
if($maxResults) { | if($maxResults) { | ||||
$result->setMaxResults($maxResults) ; | $result->setMaxResults($maxResults) ; | ||||
} | } |