|
|
|
@ -567,7 +567,7 @@ class ActiveRecord extends BaseActiveRecord
|
|
|
|
|
* In the above step 1 and 3, events named [[EVENT_BEFORE_DELETE]] and [[EVENT_AFTER_DELETE]] |
|
|
|
|
* will be raised by the corresponding methods. |
|
|
|
|
* |
|
|
|
|
* @return integer|boolean the number of rows deleted, or false if the deletion is unsuccessful for some reason. |
|
|
|
|
* @return integer|false the number of rows deleted, or false if the deletion is unsuccessful for some reason. |
|
|
|
|
* 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. |
|
|
|
@ -596,7 +596,7 @@ class ActiveRecord extends BaseActiveRecord
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Deletes an ActiveRecord without considering transaction. |
|
|
|
|
* @return integer|boolean the number of rows deleted, or false if the deletion is unsuccessful for some reason. |
|
|
|
|
* @return integer|false the number of rows deleted, or false if the deletion is unsuccessful for some reason. |
|
|
|
|
* Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful. |
|
|
|
|
* @throws StaleObjectException |
|
|
|
|
*/ |
|
|
|
|