|
|
|
@ -37,8 +37,7 @@ class User extends ActiveRecord implements Identity
|
|
|
|
|
'timestamp' => array( |
|
|
|
|
'class' => 'yii\behaviors\AutoTimestamp', |
|
|
|
|
'attributes' => array( |
|
|
|
|
ActiveRecord::EVENT_BEFORE_INSERT => 'create_time', |
|
|
|
|
ActiveRecord::EVENT_BEFORE_INSERT => 'update_time', |
|
|
|
|
ActiveRecord::EVENT_BEFORE_INSERT => array('create_time', 'update_time'), |
|
|
|
|
ActiveRecord::EVENT_BEFORE_UPDATE => 'update_time', |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|