File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/Wishlist/Setup/Patch/Data Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function __construct(
58
58
$ this ->json = $ json ;
59
59
$ this ->queryGenerator = $ queryGenerator ;
60
60
$ this ->queryModifierFactory = $ queryModifierFactory ;
61
- $ this ->adapter = $ resourceConnection-> getConnection () ;
61
+ $ this ->adapter = $ resourceConnection ;
62
62
}
63
63
64
64
/**
@@ -68,19 +68,20 @@ public function apply()
68
68
{
69
69
$ wishListItemOptionTable = $ this ->adapter ->getTableName ('wishlist_item_option ' );
70
70
$ select = $ this ->adapter
71
+ ->getConnection ()
71
72
->select ()
72
73
->from (
73
74
$ wishListItemOptionTable ,
74
75
['option_id ' , 'value ' ]
75
76
);
76
77
$ iterator = $ this ->queryGenerator ->generate ('option_id ' , $ select , self ::BATCH_SIZE );
77
78
foreach ($ iterator as $ selectByRange ) {
78
- $ optionRows = $ this ->adapter ->fetchAll ($ selectByRange );
79
+ $ optionRows = $ this ->adapter ->getConnection ()-> fetchAll ($ selectByRange );
79
80
foreach ($ optionRows as $ optionRow ) {
80
81
$ rowValue = $ this ->json ->unserialize ($ optionRow ['value ' ]);
81
82
unset($ rowValue ['login ' ]);
82
83
$ rowValue = $ this ->json ->serialize ($ rowValue );
83
- $ this ->adapter ->update (
84
+ $ this ->adapter ->getConnection ()-> update (
84
85
$ wishListItemOptionTable ,
85
86
['value ' => $ rowValue ],
86
87
['option_id = ? ' => $ optionRow ['option_id ' ]]
You can’t perform that action at this time.
0 commit comments