yii2关联查询两组一对一
public function getMember1(){
return $this->hasOne(Member::className(), ['wechat_id' =>'toid']);
}
public function getMember2(){
return $this->hasOne(Member::className(), ['wechat_id' =>'fromid']);
}
[
'label' => '【上司】',
'value' =>$model->member1->name
],
[
'label' => '反馈者',
'value' =>$model->member2->name
],
学习的热情不因季节的变化而改变