From d5fbb6c385637b2b5f773ae7df9d7490d18c4e6f Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 1 Aug 2016 16:25:16 +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 1f1fef1..aca9707 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() { - print_r($this->products); + print_r($this->products->deleteAll()); die(); } -- libgit2 0.21.4