File tree 1 file changed +2
-7
lines changed
app/code/Magento/CatalogImportExport/Model/Import/Product 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 19
19
*/
20
20
class LinkProcessor
21
21
{
22
- /**
23
- * @var array
24
- */
25
- private $ _linkNameToId = [];
26
-
27
22
/**
28
23
* @var array
29
24
*/
@@ -86,7 +81,7 @@ public function saveLinks(
86
81
$ nextLinkId = $ this ->resourceHelper ->getNextAutoincrement ($ mainTable );
87
82
88
83
// pre-load 'position' attributes ID for each link type once
89
- foreach ($ this ->_linkNameToId as $ linkId ) {
84
+ foreach ($ this ->linkNameToId as $ linkId ) {
90
85
$ select = $ importEntity ->getConnection ()->select ()->from (
91
86
$ resource ->getTable ('catalog_product_link_attribute ' ),
92
87
['id ' => 'product_link_attribute_id ' ]
@@ -138,7 +133,7 @@ private function processLinkBunches(
138
133
$ productIds [] = $ productId ;
139
134
$ productLinkKeys = $ this ->fetchProductLinks ($ importEntity , $ resource , $ productId );
140
135
$ linkNameToId = array_filter (
141
- $ this ->_linkNameToId ,
136
+ $ this ->linkNameToId ,
142
137
function ($ linkName ) use ($ rowData ) {
143
138
return isset ($ rowData [$ linkName . 'sku ' ]);
144
139
},
You can’t perform that action at this time.
0 commit comments