Skip to content

Commit 12b1321

Browse files
author
mastiuhin-olexandr
committed
MC-33288: [2.4][MSI][MFTF] StorefrontLoggedInCustomerCreateOrderAllOptionQuantityConfigurableProductCustomStockTest fails because of bad design
1 parent fb7d430 commit 12b1321

File tree

1 file changed

+8
-1
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product

1 file changed

+8
-1
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Relation.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ public function getRelationsByChildren(array $childrenIds): array
155155
'relation.parent_id = cpe.' . $linkField
156156
)->where('relation.child_id IN(?)', $childrenIds);
157157

158-
return $connection->fetchPairs($select);
158+
$result = $connection->fetchAll($select);
159+
$parentIdsOfChildIds = [];
160+
161+
foreach ($result as $row) {
162+
$parentIdsOfChildIds[$row['child_id']][] = $row['parent_id'];
163+
}
164+
165+
return $parentIdsOfChildIds;
159166
}
160167
}

0 commit comments

Comments
 (0)