zac3533 1 жил өмнө
parent
commit
5515f04fe9

+ 1 - 1
application/common/model/News.php

@@ -32,7 +32,7 @@ class News extends Model
 
     public function types()
     {
-        return $this->hasOne('Types','id','type_id',[],'LEFT')->setEagerlyType(0);
+        return $this->hasOne('NewsType','id','type_id',[],'LEFT')->setEagerlyType(0);
     }
 
     public function getCreateTimeTextAttr($value, $data)