diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index b00da35..52e3d37 100755 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -221,6 +221,7 @@ class Category extends \yii\db\ActiveRecord $product->delete(); } } + $this->unlinkAll('product_category'); return true; } -- libgit2 0.21.4