Skip to content

Commit

Permalink
NGSTACK-842: fix applying multiple conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Jun 28, 2024
1 parent 2f894e2 commit e2a2ae5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bundle/Command/ScheduledVisibilityUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ private function applyContentTypes(QueryBuilder $query, array $contentTypeIds):
return;
}

$query->where(
$query->expr()->in('contentclass_id', ':content_type_ids'),
)->setParameter('content_type_ids', $contentTypeIds, Connection::PARAM_INT_ARRAY);
$query
->andWhere($query->expr()->in('contentclass_id', ':content_type_ids'))
->setParameter('content_type_ids', $contentTypeIds, Connection::PARAM_INT_ARRAY)
;
}

private function getPager(bool $allContentTypes, array $allowedContentTypes, ?int $since): Pagerfanta
Expand Down

0 comments on commit e2a2ae5

Please sign in to comment.