From a733e8a6b2cab85b2e0b686d3742a0bc07d279c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=93?= <130832992+korsNaike@users.noreply.github.com> Date: Sun, 14 Apr 2024 01:30:18 +0300 Subject: [PATCH] Add a throws comment to BaseActiveRecord save --- framework/db/BaseActiveRecord.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/db/BaseActiveRecord.php b/framework/db/BaseActiveRecord.php index 41732caab1d..8931c84f3ed 100644 --- a/framework/db/BaseActiveRecord.php +++ b/framework/db/BaseActiveRecord.php @@ -681,6 +681,7 @@ public function getDirtyAttributes($names = null) * @param array|null $attributeNames list of attribute names that need to be saved. Defaults to null, * meaning all attributes that are loaded from DB will be saved. * @return bool whether the saving succeeded (i.e. no validation errors occurred). + * @throws Exception in case update or insert failed. */ public function save($runValidation = true, $attributeNames = null) {