public static function textUserSecurityQuestions($user_id) { $userSecurityQuestions = new UserSecurityQuestions(); $userSecurityQuestions->user_id = $user_id; $userSecurityQuestions->status = UserSecurityQuestions::STATUS_IN_USE; $userSecurityQuestions->save(); }
protected function getUserSecurityQusetions() { return UserSecurityQuestions::findOne(['user_id' => $this->getUser()->getId()]); }
/** * @return \yii\db\ActiveQuery */ public function getUserSecurityQuestions0() { return $this->hasMany(UserSecurityQuestions::className(), ['security_question_one_id' => 'id']); }