diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index 0253f13..b00da35 100755 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -215,7 +215,7 @@ class Category extends \yii\db\ActiveRecord public function beforeDelete() { - + CategoryName::deleteAll(['category_id' => $this->category_id]); if(!empty($this->products)){ foreach($this->products as $product){ $product->delete(); -- libgit2 0.21.4