From 17cb4f7501a3756dc21479bcca0ac6d28214f4c5 Mon Sep 17 00:00:00 2001 From: noumo Date: Sun, 17 May 2015 23:08:10 +0300 Subject: [PATCH] fix --- components/CategoryController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/CategoryController.php b/components/CategoryController.php index 685c9e5..445a7f9 100644 --- a/components/CategoryController.php +++ b/components/CategoryController.php @@ -2,14 +2,11 @@ namespace yii\easyii\components; use Yii; -use yii\db\ActiveRecord; use yii\easyii\behaviors\SortableModel; use yii\widgets\ActiveForm; use yii\web\UploadedFile; - use yii\easyii\helpers\Image; - class CategoryController extends Controller { public $categoryClass; @@ -137,7 +134,7 @@ public function actionDelete($id) $children = $model->children()->all(); $model->deleteWithChildren(); foreach($children as $child) { - $child->trigger(ActiveRecord::EVENT_AFTER_DELETE); + $child->afterDelete(); } } else { $this->error = Yii::t('easyii', 'Not found');