|
|
@@ -42,8 +42,8 @@ class ReductionCatalogRepositoryQuery extends AbstractRepositoryQuery |
|
|
|
$this->isJoinGroupUsers = true; |
|
|
|
|
|
|
|
return $this |
|
|
|
->leftJoin('.groupUsers', 'groupusers') |
|
|
|
->addSelect('groupusers') ; |
|
|
|
->leftJoin('.groupUsers', 'groupUsers') |
|
|
|
->addSelect('groupUsers') ; |
|
|
|
} |
|
|
|
return $this; |
|
|
|
} |
|
|
@@ -69,6 +69,7 @@ class ReductionCatalogRepositoryQuery extends AbstractRepositoryQuery |
|
|
|
->leftJoin('.productFamily', 'productFamily') |
|
|
|
->addSelect('productFamily') ; |
|
|
|
} |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
@@ -81,6 +82,7 @@ class ReductionCatalogRepositoryQuery extends AbstractRepositoryQuery |
|
|
|
->leftJoin('.productCategories', 'productCategories') |
|
|
|
->addSelect('productCategories') ; |
|
|
|
} |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
@@ -129,20 +131,20 @@ class ReductionCatalogRepositoryQuery extends AbstractRepositoryQuery |
|
|
|
public function filterConditionProductFamilies(array $productFamilies) |
|
|
|
{ |
|
|
|
$this->joinProductFamilies(); |
|
|
|
$this->joinProductFamily(); |
|
|
|
|
|
|
|
return $this |
|
|
|
->andWhere(':productFamilies MEMBER OF .productFamilies OR .productFamilies is empty') |
|
|
|
->setParameter('productFamilies', $productFamilies); |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
public function filterConditionProductFamily(ProductFamilyInterface $productFamily) |
|
|
|
{ |
|
|
|
$this->joinProductFamilies(); |
|
|
|
$this->joinProductFamily(); |
|
|
|
|
|
|
|
return $this |
|
|
|
->andWhere(':productFamily MEMBER OF .productFamilies OR .productFamilies is empty') |
|
|
|
->andWhere(':productFamily MEMBER OF .productFamily OR .productFamily is empty') |
|
|
|
->setParameter('productFamily', $productFamily); |
|
|
|
} |
|
|
|
|