YiiMongoDbSuite
YiiMongoDbSuite copied to clipboard
Issue with beforeDelete event
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.
The same issue is for afterDelete. It causes real problem in my project.