Skip to content

Commit 6cb4d68

Browse files
author
olysenko
committed
Merge remote-tracking branch 'origin/MAGETWO-95491' into chaika_october2
2 parents 1a78c67 + 097a11a commit 6cb4d68

File tree

1 file changed

+15
-6
lines changed
  • app/code/Magento/Review/Model/ResourceModel/Review/Product

1 file changed

+15
-6
lines changed

app/code/Magento/Review/Model/ResourceModel/Review/Product/Collection.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Review\Model\ResourceModel\Review\Product;
78

89
use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
@@ -403,12 +404,20 @@ public function getAllIds($limit = null, $offset = null)
403404
public function getResultingIds()
404405
{
405406
$idsSelect = clone $this->getSelect();
406-
$idsSelect->reset(Select::LIMIT_COUNT);
407-
$idsSelect->reset(Select::LIMIT_OFFSET);
408-
$idsSelect->reset(Select::COLUMNS);
409-
$idsSelect->reset(Select::ORDER);
410-
$idsSelect->columns('rt.review_id');
411-
return $this->getConnection()->fetchCol($idsSelect);
407+
$data = $this->getConnection()
408+
->fetchAll(
409+
$idsSelect
410+
->reset(Select::LIMIT_COUNT)
411+
->reset(Select::LIMIT_OFFSET)
412+
->columns('rt.review_id')
413+
);
414+
415+
return array_map(
416+
function ($value) {
417+
return $value['review_id'];
418+
},
419+
$data
420+
);
412421
}
413422

414423
/**

0 commit comments

Comments
 (0)