Skip to content

Commit a50dae1

Browse files
author
dnyomo
committed
Updated the message with the related method
1 parent e1f1247 commit a50dae1

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider

1 file changed

+1
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ProductSearch.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ private function getSortOrderArray(SearchCriteriaInterface $searchCriteria)
156156
foreach ($sortOrders as $sortOrder) {
157157
// I am replacing _id with entity_id because in ElasticSearch _id is required for sorting by ID.
158158
// Where as entity_id is required when using ID as the sort in $collection->load();.
159+
// @see \Magento\CatalogGraphQl\Model\Resolver\Products\Query\Search::getResult
159160
if ($sortOrder->getField() === '_id') {
160161
$sortOrder->setField('entity_id');
161162
}

0 commit comments

Comments
 (0)