Commit 1cf69a22 authored by 杨培's avatar 杨培

order 表关联 user 获取 telephone 字段

parent 83b50089
......@@ -122,7 +122,7 @@ class Orders extends \yii\db\ActiveRecord
public function getUser()
{
return $this->hasOne(User::className(), ['id'=>'user_id'])->select('id,username,role,avatar');
return $this->hasOne(User::className(), ['id'=>'user_id'])->select('id,username,telephone,role,avatar');
}
public function getCourse()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment