Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestEmprendimiento extends CActiveRecord
- {
- public function beforeSave() {
- if (!parent::beforeSave())
- return false;
- if ($this->isNewRecord)
- $this->created_at = time();
- else
- $this->updated_at = time();
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement