Closed Koc closed 7 years ago
solved, will be available in next version (1.5+) Thanks!!
@enriquepiatti awesome, helps a lot, thank you! One small thing: it doesn't work with class
constant:
$parentId = $this->objectManager
->create('Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable')
->getParentIdsByChild($product->getId()); // type resolved
$parentId = $this->objectManager
->create(\Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable:class)
->getParentIdsByChild($product->getId()); // unknown type
added support for that too (available in next release 1.6+)