1 posts in total


Posts tagged

Yii - bypassing beforeSave()

by Catalin

If you have defined in your model some “actions” / “mutators” in your, beforeSave method there is a simple way to prevent that these actions to take place in certain cases when you need that. For example, having a Company model and a field, unpaid_invoices_count that you are upda ...