示例#1
0
 public function getQuestion()
 {
     return $this->hasOne(Questions::classname(), ['questionid' => 'questionid']);
 }
示例#2
0
 public function getQuestions()
 {
     $questions = $this->hasMany(Questions::classname(), ['labelid' => 'labelid'])->asArray();
     return $questions;
 }