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