public function wordOne(){
        return $this->hasOne('TeachWord','id','w_id')->field('id,pid,title');
    }

 

 

查询:以pid为条件查询

$sql = new TeachNews();
        $sql= $sql->hasWhere('wordOne',['pid'=>$search['wordList']]);

 

相关文章:

  • 2021-06-01
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案