Browse Source

Advanced app User model updated

tags/2.0.0-beta
Alexander Kochetov 11 years ago
parent
commit
ddb0e9b0e6
  1. 8
      apps/advanced/common/models/User.php

8
apps/advanced/common/models/User.php

@ -17,8 +17,8 @@ use yii\web\IdentityInterface;
* @property string $auth_key * @property string $auth_key
* @property integer $role * @property integer $role
* @property integer $status * @property integer $status
* @property integer $create_time * @property integer $created_at
* @property integer $update_time * @property integer $updated_at
*/ */
class User extends ActiveRecord implements IdentityInterface class User extends ActiveRecord implements IdentityInterface
{ {
@ -38,8 +38,8 @@ class User extends ActiveRecord implements IdentityInterface
'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',
], ],
], ],
]; ];

Loading…
Cancel
Save