You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
344 B

<?php
namespace app\news\model;
use think\model\concern\SoftDelete;
class News extends Base
{
use SoftDelete;
protected $type = [
'img_path' => 'serialize',
];
/**
* 关联分类
*/
public function categoryRelation()
{
return $this->hasMany('NewsCategoryRelation','news_id','id');
}
}