Browse Source

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

feature/export_comptable
Guillaume 4 years ago
parent
commit
d0787c3f20
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      ShopBundle/Repository/ProductFamilyRepository.php

+ 8
- 0
ShopBundle/Repository/ProductFamilyRepository.php View 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…
Cancel
Save