255], [['auth_key'], 'string', 'max' => 32], [['username'], 'unique'], [['email'], 'unique'], [['password_reset_token'], 'unique'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'username' => 'Username', 'auth_key' => 'Auth Key', 'password_hash' => 'Password Hash', 'password_reset_token' => 'Password Reset Token', 'email' => 'Email', 'status' => 'Status', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'access_token' => 'Access Token', 'access_token_expired_at' => 'Access Token Expired At', ]; } /** * @return \yii\db\ActiveQuery */ public function getUserCards() { return $this->hasMany(UserCard::className(), ['id_user' => 'id']); } /** * @return \yii\db\ActiveQuery */ public function getUserQuestionnaires() { return $this->hasMany(UserQuestionnaire::className(), ['user_id' => 'id']); } /** * @return \yii\db\ActiveQuery */ public function getUserResponses() { return $this->hasMany(UserResponse::className(), ['user_id' => 'id']); } }