You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.
Observers allow for custom callbacks to be defined at critical locations in the DataMapper core, which could be used to pre- or post process the object's data, add additional logic, etc.
Observers should replace the static code now built-in for working with created and updated timestamps in records. This means less code and quicker execution for those that don't need this feature.
Wan, I noticed that Jamierumbelow's base model MY_Model uses various callbacks/hooks for before and after events. I've always found this kind of confusing, because I find that by simply using standard OOP inheritance, you can accomplish the same thing.
Observers allow for custom callbacks to be defined at critical locations in the DataMapper core, which could be used to pre- or post process the object's data, add additional logic, etc.
Original issue from DataMapper v1.
see http://codeigniter.com/forums/viewthread/149388/P530/#783616 and http://codeigniter.com/forums/viewthread/149388/P540/#783667
The text was updated successfully, but these errors were encountered: