Difference between #6 and #7 of
How to automate timestamps in ActiveRecord models

Revision #7 has been created by mishhh on Feb 21, 2009, 1:03:07 PM with the memo:

changed title for organizing purpose
« previous (#6) next (#8) »

Changes

Title changed

AHow to automate timestamps in ActiveRecord models

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content unchanged

[...]
$this->modified = new CDbExpression('NOW()');

return parent::beforeSave();
}

These are simple and elegant solutions to this issue.
26 0
34 followers
Viewed: 178 730 times
Version: 1.1
Category: Tutorials
Tags:
Written by: dalip
Last updated by: Yang He
Created on: Feb 14, 2009
Last updated: 11 years ago
Update Article

Revisions

View all history