Sfoglia il codice sorgente

Promotions : correctif produits hors ligne affichés sur le front

feature/export_comptable
Guillaume 4 anni fa
parent
commit
d0787c3f20
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. +8
    -0
      ShopBundle/Repository/ProductFamilyRepository.php

+ 8
- 0
ShopBundle/Repository/ProductFamilyRepository.php Vedi File

@@ -37,6 +37,14 @@ class ProductFamilyRepository extends BaseRepository implements DefaultRepositor
return $query->getQuery()->getResult() ;
}

public function findAllOnline()
{
$query = $this->findByMerchantQuery() ;
$query = $this->joinRelations($query) ;
$query->andWhere('e.status = 1') ;
return $query->getQuery()->getResult() ;
}

public function findOneBySlug($slug)
{
$query = $this->findByMerchantQuery() ;

Loading…
Annulla
Salva