From a4c312f48b93c778a5f70367368c31da7f803650 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 1 Aug 2016 16:36:50 +0300 Subject: [PATCH] 20.07.16 --- common/modules/product/models/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index a109e5e..6dd0781 100755 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -221,7 +221,7 @@ class Category extends \yii\db\ActiveRecord $product->delete(); } } - $this->unlinkAll(ProductCategory::className()); + ProductCategory::deleteAll(['category_id' => $this->category_id]); CategoryName::deleteAll(['category_id' => $this->category_id]); return true; } -- libgit2 0.21.4