Commit 3e12fb82 authored by sugar's avatar sugar

姓名卡

parent f4e8ec26
...@@ -59,11 +59,11 @@ class Namecard extends Model ...@@ -59,11 +59,11 @@ class Namecard extends Model
public function pid(){ public function pid(){
return $this->belongsTo('app\admin\model\family\FamilyPeople','pid','user_id','','left')->setEagerlyType(0); return $this->belongsTo('app\admin\model\family\FamilyPeople','pid','user_id','','right')->setEagerlyType(0);
} }
public function user(){ public function user(){
return $this->belongsTo('app\admin\model\family\FamilyPeople','user_id','user_id','','left')->setEagerlyType(0); return $this->belongsTo('app\admin\model\family\FamilyPeople','user_id','user_id','','right')->setEagerlyType(0);
} }
} }
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