zac3533 1 سال پیش
والد
کامیت
5515f04fe9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      application/common/model/News.php

+ 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)