diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index fdd7fe7..e5b2eec 100755 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -202,9 +202,4 @@ class Category extends \yii\db\ActiveRecord } return false; } - - public function afterDelete() - { - ProductCategory::deleteAll(['category_id' => $this->category_id]); - } } -- libgit2 0.21.4