Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Issue with beforeDelete event #55

Open
xterr opened this issue Sep 15, 2011 · 1 comment
Open

Issue with beforeDelete event #55

xterr opened this issue Sep 15, 2011 · 1 comment

Comments

@xterr
Copy link

xterr commented Sep 15, 2011

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.

@uaoleg
Copy link

uaoleg commented Feb 1, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants