From 55e9b838b9545d30ac08291228a93c0d8411ee0c Mon Sep 17 00:00:00 2001 From: Karnovsky A Date: Tue, 7 Jun 2016 15:25:23 +0300 Subject: [PATCH] - --- common/modules/product/models/Category.php | 5 ----- 1 file changed, 0 insertions(+), 5 deletions(-) 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