Yii2 provides many types of join:
- Join()
- leftJoin()
- rightJoin()
- joinWith()
- innerJoinWith()
Yii2 Join Query
$query = (new Query())->from('user');
$query->select('user.id , user_profile.first_name , user_profile.last_name');
$result = $query->join('left join', 'user_profile', 'user_profile.user_id = user.id')->all();
8гроргортг
ReplyDelete
ReplyDeleteIt is nice post and I found some interesting information on this blog, keep it up. Thanks for sharing. . .
Hire Yii Developers in India
Thanks for sharing this short informative note on Yii2 Join Query with an example. if you have any requirement to Hire Yii Developers for your project. Please visit us.
ReplyDelete