|
@@ -167,9 +167,8 @@ class User extends Model
|
|
|
/**
|
|
|
* 学历
|
|
|
*/
|
|
|
- public function category(){
|
|
|
- return $this->belongsTo('Category', 'education', 'id', [], 'LEFT')->setEagerlyType(0);
|
|
|
-
|
|
|
+ public function education(){
|
|
|
+ return $this->belongsTo('Category','education','id','','LEFT');
|
|
|
}
|
|
|
|
|
|
/**
|