'serialize', ]; /** * 关联分类 */ public function categoryRelation() { return $this->hasMany('NewsCategoryRelation','news_id','id'); } }