@@ -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() ; |