mirror of
https://gh.wpcy.net/https://github.com/verygoodplugins/freescout-github.git
synced 2026-04-26 08:52:18 +08:00
32 lines
No EOL
608 B
PHP
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');
|
|
}
|
|
} |