/**
  * Adds additional criteria to query builder. Filters dataset by current shop scope
  *
  * @return \Doctrine\ORM\QueryBuilder
  */
 public function getQueryBuilder()
 {
     $qb = parent::getQueryBuilder();
     if (null !== $this->context && 0 !== $this->context->getCurrentScopeId()) {
         $expression = $qb->expr()->eq('page_shops.id', ':shop');
         $qb->andWhere($expression);
         $qb->setParameter('shop', $this->context->getCurrentScopeId());
     }
     return $qb;
 }
 public function getCurrentShop()
 {
     return $this->shopContext->getCurrentScope();
 }