Useful ActiveRecord extension for Yii
Add next functionality to standart class:
- isDirty() method to check model consistence with db record;
- automatic timestamping for create/update attribute (using zii);
- convenient method for record attribute trimming for breadcrumbs;
- "Safe" updating and deleting of record using "Optimistic Locking" with ability to retry saving several times
Written by Kuklin Mikhail
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Yii
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#