yii app db createcommand join yii1

Solutions on MaxInterview for yii app db createcommand join yii1 by the best coders in the world

showing results for - "yii app db createcommand join yii1"
Erik
19 Apr 2020
1$user = Yii::app()->db->createCommand()
2    ->select('id, username, profile')
3    ->from('tbl_user u')
4    ->join('tbl_profile p', 'u.id=p.user_id')
5    ->where('id=:id', array(':id'=>$id))
6    ->queryRow();