diff --git a/common/models/Restaurant.php b/common/models/Restaurant.php index 6cf22b9de..db47d4452 100644 --- a/common/models/Restaurant.php +++ b/common/models/Restaurant.php @@ -4383,7 +4383,7 @@ public function beforeDelete() return parent::beforeDelete(); } catch (Exception $e) { $transaction->rollBack(); - die($e->getMessage()); + Yii::error($e->getMessage(), __METHOD__); return false; } }