26 lines
493 B
PHP
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']);
|
|
}
|
|
|
|
} |