freescout-github/Entities/GithubIssueConversation.php
2025-11-13 15:25:19 +02:00

32 lines
No EOL
608 B
PHP

<?php
namespace Modules\Github\Entities;
use Illuminate\Database\Eloquent\Model;
class GithubIssueConversation extends Model
{
protected $table = 'github_issue_conversation';
public $timestamps = true;
protected $fillable = [
'github_issue_id', 'conversation_id'
];
/**
* Get the conversation
*/
public function conversation()
{
return $this->belongsTo('App\Conversation');
}
/**
* Get the GitHub issue
*/
public function githubIssue()
{
return $this->belongsTo(GithubIssue::class, 'github_issue_id');
}
}