File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
app/code/Magento/Review/Model/ResourceModel/Review/Product Expand file tree Collapse file tree 1 file changed +16
-5
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 ;
@@ -116,7 +117,8 @@ public function __construct(
116
117
\Magento \Framework \DB \Adapter \AdapterInterface $ connection = null ,
117
118
ProductLimitationFactory $ productLimitationFactory = null ,
118
119
MetadataPool $ metadataPool = null
119
- ) {
120
+ )
121
+ {
120
122
$ this ->_ratingFactory = $ ratingFactory ;
121
123
$ this ->_voteFactory = $ voteFactory ;
122
124
parent ::__construct (
@@ -403,11 +405,20 @@ public function getAllIds($limit = null, $offset = null)
403
405
public function getResultingIds ()
404
406
{
405
407
$ idsSelect = clone $ this ->getSelect ();
406
- $ idsSelect ->reset (Select::LIMIT_COUNT );
407
- $ idsSelect ->reset (Select::LIMIT_OFFSET );
408
+ $ data = $ this ->getConnection ()
409
+ ->fetchAll (
410
+ $ idsSelect
411
+ ->reset (Select::LIMIT_COUNT )
412
+ ->reset (Select::LIMIT_OFFSET )
413
+ ->columns ('rt.review_id ' )
414
+ );
408
415
409
- $ idsSelect ->columns ('rt.review_id ' );
410
- return $ this ->getConnection ()->fetchCol ($ idsSelect );
416
+ return array_map (
417
+ function ($ value ) {
418
+ return $ value ['review_id ' ];
419
+ },
420
+ $ data
421
+ );
411
422
}
412
423
413
424
/**
You can’t perform that action at this time.
0 commit comments