$mainQuery->
setParameter(':customerGroup',
$context->
getCurrentCustomerGroup()->
getKey()) ->
setParameter(':fallbackCustomerGroup',
$context->
getFallbackCustomerGroup()->
getKey()) ->
setParameter(':variants',
$variantIds, Connection::PARAM_INT_ARRAY
) ->
setParameter(':priceGroupCustomerGroup',
$customerGroup->
getId());
$data =
$mainQuery->
execute()->
fetchAll(PDO::FETCH_ASSOC
);
$prices =
[];
foreach ($data as $row) { $product =
(string) $row['__variant_ordernumber'
];
$prices[$product]['price'
] =
$this->priceHydrator->
hydrateCheapestPrice($row);
$prices[$product]['price'
]->
setCustomerGroup($customerGroup);
$prices[$product]['different_price_count'
] =
(int) $row['__different_price_count'
];
} return $prices;
} /**
* @deprecated - Will be private in Shopware 5.8
*
* @return string
*/