Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 840 Bytes

2022-04-12-implement-sorting-by-association-count.md

File metadata and controls

13 lines (13 loc) · 840 Bytes
title issue author author_email author_github
Implement sorting by association count
NEXT-21006
d.neustadt
dneustadt

Core

  • Added Shopware\Core\Framework\DataAbstractionLayer\Search\Sorting\CountSorting
  • Changed Shopware\Core\Framework\DataAbstractionLayer\Search\RequestCriteriaBuilder::parseSorting to read value of key type in iteration of the sort param and instanciate CountSorting if type equals count
  • Changed Shopware\Core\Framework\DataAbstractionLayer\Dbal\CriteriaQueryBuilder::addSortings to handle instances of CountSorting
  • Added Shopware\Elasticsearch\Sort\CountSort as extension of FieldSort
  • Changed Shopware\Elasticsearch\Framework\DataAbstractionLayer\CriteriaParser::parseSorting to return instance of CountSort if instance of CountSorting is given