glhcp/server/app/common/model/community/CommunityCategory.php

29 lines
464 B
PHP
Raw Normal View History

2023-08-10 06:59:52 +00:00
<?php
namespace app\common\model\community;
use app\common\basics\Models;
/**
* 种草社区分类
* Class CommunityCategory
* @package app\common\model\content
*/
class CommunityCategory extends Models
{
/**
* @notes 关联话题
* @return \think\model\relation\HasMany
* @author 段誉
* @date 2022/4/29 16:33
*/
public function topic()
{
return $this->hasMany(CommunityTopic::class, 'cid', 'id');
}
}