erp/app/common/model/article/ArticleComment.php
2024-02-18 17:31:11 +08:00

26 lines
493 B
PHP

<?php
namespace app\common\model\article;
use app\common\model\BaseModel;
use think\model\concern\SoftDelete;
/**
* 评论模型
* Class ArticleComment
* @package app\common\model\article
*/
class ArticleComment extends BaseModel
{
use SoftDelete;
protected $name = 'article_comment';
protected $deleteTime = 'delete_time';
public function title()
{
return $this->hasOne(Article::class,'id','article_id')->bind(['article_title'=>'title']);
}
}