File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Catalog/Model/Product/Link Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ public function execute($entityType, $entity)
6666 $ link = $ entity ->getData ($ this ->metadataPool ->getMetadata ($ entityType )->getLinkField ());
6767 if ($ this ->linkResource ->hasProductLinks ($ link )) {
6868 /** @var \Magento\Catalog\Api\Data\ProductInterface $entity */
69- foreach ($ this ->productLinkRepository ->getList ($ entity ) as $ link ) {
70- $ this ->productLinkRepository ->delete ($ link );
69+ foreach ($ this ->productLinkRepo ->getList ($ entity ) as $ link ) {
70+ $ this ->productLinkRepo ->delete ($ link );
7171 }
7272 }
7373 $ productLinks = $ entity ->getProductLinks ();
@@ -97,7 +97,7 @@ public function execute($entityType, $entity)
9797
9898 if (count ($ productLinks ) > 0 ) {
9999 foreach ($ entity ->getProductLinks () as $ link ) {
100- $ this ->productLinkRepository ->save ($ link );
100+ $ this ->productLinkRepo ->save ($ link );
101101 }
102102 }
103103 return $ entity ;
You can’t perform that action at this time.
0 commit comments