Skip to content

Instantly share code, notes, and snippets.

@iworker
Last active August 29, 2015 14:25
Show Gist options
  • Save iworker/2998d3fc47aa70d58b21 to your computer and use it in GitHub Desktop.
Save iworker/2998d3fc47aa70d58b21 to your computer and use it in GitHub Desktop.
<?php
namespace common\models;
use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;
class TestModel extends ActiveRecord
{
public function behaviors()
{
return [
'timestamp1' => TimestampBehavior::className(),
'timestamp2' => TimestampBehavior::className(),
'timestamp3' => TimestampBehavior::className(),
'timestamp4' => TimestampBehavior::className(),
'timestamp5' => TimestampBehavior::className(),
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment