|
|
@ -23,8 +23,8 @@ class User extends ActiveRecord |
|
|
|
'timestamp' => [ |
|
|
|
'timestamp' => [ |
|
|
|
'class' => 'yii\behaviors\AutoTimestamp', |
|
|
|
'class' => 'yii\behaviors\AutoTimestamp', |
|
|
|
'attributes' => [ |
|
|
|
'attributes' => [ |
|
|
|
ActiveRecord::EVENT_BEFORE_INSERT => ['create_time', 'update_time'], |
|
|
|
ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'], |
|
|
|
ActiveRecord::EVENT_BEFORE_UPDATE => 'update_time', |
|
|
|
ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at', |
|
|
|
], |
|
|
|
], |
|
|
|
], |
|
|
|
], |
|
|
|
]; |
|
|
|
]; |
|
|
|