$query->
setParameter('variantGroupIds',
$facet->
getGroupIds(), Connection::PARAM_INT_ARRAY
);
} /**
* @return array<int>
*/
private function getFilteredValues(Criteria
$criteria): array
{ $values =
[];
foreach ($criteria->
getConditions() as $condition) { if ($condition instanceof VariantCondition
) { foreach ($condition->
getOptionIds() as $id) { $values[] =
$id;
} } } return $values;
} /**
* @param Group[] $groups
* @param int[] $actives
*/