Update BaseActiveRecord.php

The exceptions thrown on error are db exceptions.
This commit is contained in:
Carsten Brandt
2014-11-30 21:02:43 +01:00
parent c1fd9c6175
commit 073982ab0a

View File

@ -634,7 +634,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
* or [[beforeSave()]] stops the updating process. * or [[beforeSave()]] stops the updating process.
* @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data
* being updated is outdated. * being updated is outdated.
* @throws \Exception in case update failed. * @throws Exception in case update failed.
*/ */
public function update($runValidation = true, $attributeNames = null) public function update($runValidation = true, $attributeNames = null)
{ {
@ -772,7 +772,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
* Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful. * Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful.
* @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data
* being deleted is outdated. * being deleted is outdated.
* @throws \Exception in case delete failed. * @throws Exception in case delete failed.
*/ */
public function delete() public function delete()
{ {