yii: soft delete

by prettyscripts on 2011-03-28 12:31:00 • Leave a comment »

phpyii

as with most of my projects, i do not want to physically delete most records so that they can be re-instated later. however, since i can't seem to find any info regarding this topic, i guess soft delete is not available in yii. you need to implement th… more »

Tags: behavior, database, delete, yii

yii: created and updated, who and when

by prettyscripts on 2010-09-02 15:31:02 • 5 comments »

phpyii

most data have created_date, created_by, updated_date and updated_by columns to audit records. in yii, these columns can be automatically updated via these 2 behaviors:CTimestampBehavior - a standard zii behavior that is distributed with yiiBlameab… more »

Tags: behavior, created, extension, modified, timestamp, updated, yii