Skip to content

Commit 1c05b96

Browse files
authored
IBX-9060: Updated StatusCriterionHandler to use in expression for multi-status support (#627)
1 parent 0e3372e commit 1c05b96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/Persistence/Legacy/Notification/Gateway/CriterionHandler/StatusCriterionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function supports(CriterionInterface $criterion): bool
2727

2828
public function apply(QueryBuilder $qb, CriterionInterface $criterion): void
2929
{
30-
$qb->andWhere($qb->expr()->eq(DoctrineDatabase::COLUMN_IS_PENDING, ':status'));
31-
$qb->setParameter(':status', $criterion->getStatuses(), Connection::PARAM_STR_ARRAY);
30+
$qb->andWhere($qb->expr()->in(DoctrineDatabase::COLUMN_IS_PENDING, ':status'));
31+
$qb->setParameter(':status', $criterion->getStatuses(), Connection::PARAM_INT_ARRAY);
3232
}
3333
}

0 commit comments

Comments
 (0)