update v1.0.6

This commit is contained in:
sujitprasad
2016-02-16 22:42:08 +05:30
parent e6b579d67b
commit 073a49a8af
587 changed files with 21487 additions and 22766 deletions

View File

@@ -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'
];
}