Explorar el Código

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

feature/tableau_edition_avancee
Fab hace 4 años
padre
commit
fd044fbf89
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      ShopBundle/Repository/ProductFamilyRepository.php

+ 3
- 1
ShopBundle/Repository/ProductFamilyRepository.php Ver fichero

@@ -105,9 +105,11 @@ class ProductFamilyRepository extends BaseRepository implements DefaultRepositor
$query = $this->joinRelations($query) ;

$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->groupBy('e.id') ;

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

Cargando…
Cancelar
Guardar