0

Why these sql is execute I think the the "joinWith" finsh all work

enter image description here * this is my Model enter image description here

php $query = Teacher::find()->select([ '{{%teacher}}.id','{{%teacher}}.nickname','{{%teacher}}.type_id','{{%teacher}}.header_img','{{%teacher}}.type_id', '{{%teacher}}.edu_area_deep3','{{%teacher}}.edu_level','{{%teacher}}.edu_class','{{%teacher}}.college_graduate_id', '{{%teacher}}.sex', '{{%teacher}}.edu_count_time','{{%teacher}}.edu_count_number','{{%teacher}}.teach_subject', '{{%teacher}}.specialty','{{%teacher}}.reward_count','{{%teacher}}.oneself' ])->joinWith(['typeName','eduLevel','collegeGraduate'])->asArray();

ahan feng
  • 26
  • 1

0 Answers0