boolfly/product-relation 1.1.1

N/A

Type

magento2-module

License

None

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Magento 2 - Custom Product Relation

Magento 2 - Adding custom product relations

Note: Testing on Magento 2.1.x version.

We can call the custom product relation:

   /** @var \Magento\Catalog\Model\Product $product */
    return $product->getCustomTypeProducts();