瀏覽代碼

更新患者

ChenWuJie 4 年之前
父節點
當前提交
70dbda416e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Patient.php

+ 1 - 1
app/Models/Patient.php

xqd
@@ -43,6 +43,6 @@ class Patient extends BaseModel
         return $text;
     }
     public function users(){
-        return $this->hasOne(User::class,'id','user_id');
+        return $this->belongsTo(User::class,'id','user_id');
     }
 }