LinkManagement::getChildren() does not include product ID's (and visibility) #8176
Labels
bug report
Component: Catalog
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
When I'm using the Service Contract
Magento\ConfigurableProduct\Api\LinkManagementInterface::getChildren($sku)
, I get an array of child products, but those products don't seem to be complete. For instance,getId()
andgetVisibility()
returnsNULL
on those child products.Preconditions
Steps to reproduce
Get child products using the
LinkManagementInterface
service contract and try to get ID and visibility of the results:Expected result
I should get the ID and Visibility parameter of the child products
Actual result
I get
NULL
andNULL
Workaround
A possible workaround is to explicitly load the product, but this causes some overhead:
The text was updated successfully, but these errors were encountered: