protected function getConditions() { $conditions = parent::getConditions(); if (null !== $this->context) { $conditions->add(new Eq('shop', $this->context->getCurrentShopIdentifier())); } return $conditions; }