Browse Source

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/LcShopBundle into develop

feature/tableau_edition_avancee
Fab 4 years ago
parent
commit
fd044fbf89
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      ShopBundle/Repository/ProductFamilyRepository.php

+ 3
- 1
ShopBundle/Repository/ProductFamilyRepository.php View File

$query = $this->joinRelations($query) ; $query = $this->joinRelations($query) ;


$query->andWhere('e.status = 1'); $query->andWhere('e.status = 1');
$query->andWhere('e.title LIKE :terms');
$query->andWhere('e.title LIKE :terms OR cat.title LIKE :terms');
$query->setParameter(':terms', '%'.$terms.'%') ; $query->setParameter(':terms', '%'.$terms.'%') ;


$query->groupBy('e.id') ;

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

Loading…
Cancel
Save