|
|
@@ -71,6 +71,13 @@ final class AssociationField implements FieldInterface |
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
public function setFilterOnMerchantViaSection(MerchantInterface $merchant): self |
|
|
|
{ |
|
|
|
$this->queryBuilderParameters['merchantViaSection'] = $merchant; |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
public function setFilterOnDevAlias(string $devAlias): self |
|
|
|
{ |
|
|
|
$this->queryBuilderParameters['devAlias'] = $devAlias; |
|
|
@@ -129,6 +136,11 @@ final class AssociationField implements FieldInterface |
|
|
|
$qb->andWhereMerchantManyToMany('e', $param['merchantManyToMany']); |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($param['merchantViaSection'])) { |
|
|
|
$qb->leftJoin('e.section', 's'); |
|
|
|
$qb->andWhereMerchant('s', $param['merchantViaSection']); |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($param['status'])) { |
|
|
|
$qb->andWhere('e.status = :status')->setParameter('status', $param['status']); |
|
|
|
} |