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