From ee3bf1ad918d5e2e56d25c5a39d4b3cb66c1b9d5 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 1 Aug 2016 16:35:47 +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 3e5cee4..a109e5e 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('product_category'); + $this->unlinkAll(ProductCategory::className()); CategoryName::deleteAll(['category_id' => $this->category_id]); return true; } -- libgit2 0.21.4