diff --git a/framework/db/ActiveRecord.php b/framework/db/ActiveRecord.php index ccda50c2028..b8feb6616a5 100644 --- a/framework/db/ActiveRecord.php +++ b/framework/db/ActiveRecord.php @@ -516,7 +516,7 @@ protected function insertInternal($attributes = null) * will not be saved to the database and this method will return `false`. * @param array $attributeNames list of attributes that need to be saved. Defaults to `null`, * meaning all attributes that are loaded from DB will be saved. - * @return integer|boolean the number of rows affected, or false if validation fails + * @return integer|false the number of rows affected, or false if validation fails * or [[beforeSave()]] stops the updating process. * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data * being updated is outdated. diff --git a/framework/db/BaseActiveRecord.php b/framework/db/BaseActiveRecord.php index 8777b42fdda..74a58a98e73 100644 --- a/framework/db/BaseActiveRecord.php +++ b/framework/db/BaseActiveRecord.php @@ -681,7 +681,7 @@ public function save($runValidation = true, $attributeNames = null) * will not be saved to the database and this method will return `false`. * @param array $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 integer|boolean the number of rows affected, or `false` if validation fails + * @return integer|false the number of rows affected, or `false` if validation fails * or [[beforeSave()]] stops the updating process. * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data * being updated is outdated. @@ -739,7 +739,7 @@ public function updateAttributes($attributes) /** * @see update() * @param array $attributes attributes to update - * @return integer number of rows updated + * @return integer|false the number of rows affected, or false if [[beforeSave()]] stops the updating process. * @throws StaleObjectException */ protected function updateInternal($attributes = null)