diff --git a/apps/advanced/common/models/User.php b/apps/advanced/common/models/User.php index 110487e..7830718 100644 --- a/apps/advanced/common/models/User.php +++ b/apps/advanced/common/models/User.php @@ -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', ), ),