Browse Source

Merge branch 'develop'

master
Guillaume 4 years ago
parent
commit
e7b3a086d1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ShopBundle/Repository/NewsRepository.php

+ 2
- 0
ShopBundle/Repository/NewsRepository.php View File

@@ -24,6 +24,8 @@ class NewsRepository extends BaseRepository implements DefaultRepositoryInterfac
$result = $this->findByMerchantQuery()
->orderBy('e.date', 'DESC') ;

$result->andWhere('e.status = 1') ;

if($maxResults) {
$result->setMaxResults($maxResults) ;
}

Loading…
Cancel
Save