Pārlūkot izejas kodu

ProductFamilyRepository : status = 1

develop
Guillaume pirms 3 gadiem
vecāks
revīzija
3920aba9cb
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      ShopBundle/Repository/ProductFamilyRepository.php

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

@@ -128,6 +128,7 @@ class ProductFamilyRepository extends BaseRepository implements DefaultRepositor
$query = $this->findByMerchantQuery() ;
$query = $this->joinRelations($query) ;

$query->andWhere('e.status = 1');
$query->andWhere(':section MEMBER OF e.sections')
->setParameter('section', $section) ;
$query->leftJoin('e.productCategories', 'productCategories');

Notiek ielāde…
Atcelt
Saglabāt