qifengquan hace 1 año
padre
commit
60998126fa
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      application/common/model/User.php

+ 2 - 3
application/common/model/User.php

@@ -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');
     }
 
     /**