|
|
|
|
|
|
|
|
return $query->getQuery()->getResult() ; |
|
|
return $query->getQuery()->getResult() ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function findOneBySlug($slug) |
|
|
|
|
|
{ |
|
|
|
|
|
$query = $this->findByMerchantQuery() ; |
|
|
|
|
|
$query->andWhere('e.slug = :slug')->setParameter('slug',$slug) ; |
|
|
|
|
|
return $query->getQuery()->getOneOrNullResult() ; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function getProductFamiliesByCategory($category){ |
|
|
public function getProductFamiliesByCategory($category){ |
|
|
$query = $this->findByMerchantQuery() ; |
|
|
$query = $this->findByMerchantQuery() ; |
|
|
$query = $this->joinRelations($query) ; |
|
|
$query = $this->joinRelations($query) ; |