Commit 073982ab by Carsten Brandt

Update BaseActiveRecord.php

The exceptions thrown on error are db exceptions.
parent c1fd9c61
......@@ -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()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment