From 7369821d24a63cdf48e308d9dd8368786bc93212 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 1 Aug 2016 16:33:45 +0300 Subject: [PATCH] 20.07.16 --- common/modules/product/models/Category.php | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) 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