8

I have tried to add product with bundle type that time getting error like below.

Could not save child: "Unknown entity type: Magento\Bundle\Model\Selection\Interceptor requested"

2 Answers2

-1

i got same issues for this trouble, i resolved by add interface : Magento\Framework\ObjectManager\NoninterceptableInterface to Magento\Bundle\Model\Selection the final class define look like:

class Selection extends \Magento\Framework\Model\AbstractModel implements \Magento\Framework\ObjectManager\NoninterceptableInterface

Vu Anh
  • 209
  • 2
  • 7
-1

Change

class Selection extends \Magento\Framework\Model\AbstractModel

to

class Selection extends \Magento\Framework\Model\AbstractModel implements \Magento\Framework\ObjectManager\NoninterceptableInterface

on below file

vendor/magento/module-bundle/Model/Selection.php

Ishvar Patel
  • 107
  • 9
  • You really shouldn't be editing core files. And editing something in the vendor directly will just get overwritten the next time that package is upgraded through composer. This is inappropriate for two reasons. – hsanders Feb 25 '21 at 21:16