I need to detect when a certain value has changed, then execute some script.
How to do that with AR?
I need to detect when a certain value has changed, then execute some script.
How to do that with AR?
in AR::afterFind() you could save all attributes in $oldAttributes
in AR::afterSave() just compare $oldAttributes with $this->attributes