CodeExplorer ProductIdCondition example
$this->
assignConditions($productStream,
$criteria);
$sortings =
$criteria->
getSortings();
if (empty($sortings)) { $this->
assignSortings($productStream,
$criteria);
} } private function prepareSelectionStream(array
$productStream, Criteria
$criteria): void
{ $productIds =
$this->
getProductIds((int) $productStream['id'
]);
$criteria->
addBaseCondition(new ProductIdCondition($productIds));
$sortings =
$criteria->
getSortings();
if (empty($sortings)) { $this->
assignSortings($productStream,
$criteria);
} } /**
* @return int[]
*/
private function getProductIds(int
$productStreamId): array
{