YiiMongoDbSuite icon indicating copy to clipboard operation
YiiMongoDbSuite copied to clipboard

Issue with beforeDelete event

Open xterr opened this issue 13 years ago • 1 comments

If you try to put smth in beforeDelete this will get called twice when executing $model->delete() because of the "$this->beforeDelete()" from deleteByPk. In the initial CActiveRecord class, in delete method, they don`t do a beforeDelete, just delete the record.

xterr avatar Sep 15 '11 16:09 xterr

The same issue is for afterDelete. It causes real problem in my project.

uaoleg avatar Feb 01 '13 08:02 uaoleg