Criteria
$criteria,
ShopContextInterface
$context ) { if ($criteria->
hasAttribute('product_dimensions_handled'
)) { return null;
} $query =
$this->queryBuilderFactory->
createQuery($reverted,
$context);
$query->
resetQueryPart('orderBy'
);
$query->
resetQueryPart('groupBy'
);
$this->variantHelper->
joinVariants($query);
$query->
select([ 'MIN(allVariants.height) as minHeight',
'MAX(allVariants.height) as maxHeight',
'MIN(allVariants.weight) as minWeight',
'MAX(allVariants.weight) as maxWeight',
'MIN(allVariants.width) as minWidth',
'MAX(allVariants.width) as maxWidth',
'MIN(allVariants.length) as minLength',
'MAX(allVariants.length) as maxLength',
]);