update v1.0.6
This commit is contained in:
@@ -1,11 +1,24 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Ticket;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Model\helpdesk\Ticket\Ticket_attachments;
|
||||
|
||||
class Ticket_Thread extends Model {
|
||||
|
||||
protected $table = 'ticket_thread';
|
||||
protected $fillable = [
|
||||
'id', 'pid', 'ticket_id', 'staff_id', 'user_id', 'thread_type', 'poster', 'source', 'is_internal', 'title', 'body', 'format', 'ip_address', 'created_at', 'updated_at'
|
||||
];
|
||||
|
||||
public function attach() {
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_attachments', 'thread_id');
|
||||
}
|
||||
|
||||
public function delete() {
|
||||
$$this->attach()->delete();
|
||||
parent::delete();
|
||||
}
|
||||
|
||||
class Ticket_Thread extends Model
|
||||
{
|
||||
protected $table = 'ticket_thread';
|
||||
protected $fillable = [
|
||||
'id','pid','ticket_id','staff_id','user_id','thread_type','poster','source','is_internal','title','body','format','ip_address','created_at','updated_at'
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user