We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb55744 commit 7569b08Copy full SHA for 7569b08
app/code/Magento/Catalog/Model/ResourceModel/Product/Relation.php
@@ -152,7 +152,7 @@ public function getRelationsByChildren(array $childrenIds): array
152
)->join(
153
['relation' => $this->getTable('catalog_product_relation')],
154
'relation.parent_id = cpe.' . $linkField
155
- )->where('child_id IN(?)', $childrenIds);
+ )->where('relation.child_id IN(?)', $childrenIds);
156
157
return $connection->fetchCol($select);
158
}
0 commit comments