mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Update BaseActiveRecord.php
The exceptions thrown on error are db exceptions.
This commit is contained in:
@ -634,7 +634,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
|
||||
* or [[beforeSave()]] stops the updating process.
|
||||
* @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data
|
||||
* being updated is outdated.
|
||||
* @throws \Exception in case update failed.
|
||||
* @throws Exception in case update failed.
|
||||
*/
|
||||
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.
|
||||
* @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data
|
||||
* being deleted is outdated.
|
||||
* @throws \Exception in case delete failed.
|
||||
* @throws Exception in case delete failed.
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user