Codxplore.com

Latest news: New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!


joinWith()

Sample 1:

$model = User::find()
    ->joinWith('comments')
    ->all();

Sample 2:

$model = User::find()
    ->joinWith('comments')
    ->orderBy('tbl_comments_id.id, tbl_user.id')
    ->all();

Tags : PHP, Yii2,

Views : 1939

Subscribe Us


Follow Us