1 | <?php |
||
38 | class Comment extends ModelAbstract |
||
39 | { |
||
40 | use CommentRelations; |
||
41 | |||
42 | /** |
||
43 | * Timestamp enabled. |
||
44 | * |
||
45 | * @var bool |
||
46 | */ |
||
47 | public $timestamps = true; |
||
48 | |||
49 | /** |
||
50 | * Name of database table. |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $table = 'projects_issues_comments'; |
||
55 | |||
56 | /** |
||
57 | * List of allowed columns to be used in $this->fill(). |
||
58 | * |
||
59 | * @var array |
||
60 | */ |
||
61 | protected $fillable = [ |
||
62 | 'created_by', |
||
63 | 'project_id', |
||
64 | 'issue_id', |
||
65 | 'comment', |
||
66 | ]; |
||
67 | |||
68 | /** |
||
69 | * @param User|null $user |
||
70 | * |
||
71 | * @return \Tinyissue\Repository\Project\Issue\Comment\Updater |
||
72 | */ |
||
73 | public function updater(User $user = null) |
||
77 | } |
||
78 |