日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無先后,達(dá)者為師

網(wǎng)站首頁 編程語言 正文

yii joinwith查數(shù)據(jù)的問題

作者:左手江湖 更新時(shí)間: 2022-02-03 編程語言
->joinwith([
          'promoter' => function($query){
                    $query->andFilterWhere(['realname' => trim(Yii::$app->request->get()[1]['promoter.realname'])]);
                },
            'promoter' => function($query){
                    $query->andFilterWhere(['mobile' => trim(Yii::$app->request->get()[1]['promoter.mobile'])]);
                },
            
 ], false)

注意使用joinwoth時(shí)后面用false關(guān)閉副表,負(fù)責(zé)拿不到數(shù)據(jù)

原文鏈接:https://blog.csdn.net/shaofei1986/article/details/121905434

欄目分類
最近更新