Skip to content

Commit

Permalink
update docs of AR::update()
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Sep 5, 2016
1 parent 48b0b96 commit f006db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/db/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions framework/db/BaseActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f006db9

Please sign in to comment.