File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
app/code/Magento/Review/Model/ResourceModel/Review/Product Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Review \Model \ResourceModel \Review \Product ;
7
8
8
9
use Magento \Eav \Model \Entity \Attribute \AbstractAttribute ;
@@ -403,12 +404,20 @@ public function getAllIds($limit = null, $offset = null)
403
404
public function getResultingIds ()
404
405
{
405
406
$ 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
+ );
412
421
}
413
422
414
423
/**
You can’t perform that action at this time.
0 commit comments