title | issue | author | author_email | author_github |
---|---|---|---|---|
Implement sorting by association count |
NEXT-21006 |
d.neustadt |
dneustadt |
- Added
Shopware\Core\Framework\DataAbstractionLayer\Search\Sorting\CountSorting
- Changed
Shopware\Core\Framework\DataAbstractionLayer\Search\RequestCriteriaBuilder::parseSorting
to read value of keytype
in iteration of thesort
param and instanciateCountSorting
iftype
equalscount
- Changed
Shopware\Core\Framework\DataAbstractionLayer\Dbal\CriteriaQueryBuilder::addSortings
to handle instances ofCountSorting
- Added
Shopware\Elasticsearch\Sort\CountSort
as extension ofFieldSort
- Changed
Shopware\Elasticsearch\Framework\DataAbstractionLayer\CriteriaParser::parseSorting
to return instance ofCountSort
if instance ofCountSorting
is given