Pārlūkot izejas kodu

[Frontend] Recherche : correctif produit indisponible

feature/module_traiteur_v1
Guillaume pirms 4 gadiem
vecāks
revīzija
6a5531ceff
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. +5
    -1
      ShopBundle/Repository/ProductFamilyRepository.php

+ 5
- 1
ShopBundle/Repository/ProductFamilyRepository.php Parādīt failu

@@ -102,7 +102,11 @@ class ProductFamilyRepository extends BaseRepository implements DefaultRepositor
public function findByTerms($terms, $maxResults = false)
{
$query = $this->findByMerchantQuery() ;
$query = $this->joinRelations($query) ;

$query->leftJoin('e.productCategories', 'cat');
$query->addSelect('cat') ;

$query->orderBy('e.position', 'ASC');

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

Notiek ielāde…
Atcelt
Saglabāt