hasMany('App\Model\Module\Attachment'); } public function staff() { return $this->belongsTo('App\Model\Staff','no_badan','dikeluarkan'); } public function staffdetail() { return $this->belongsTo('App\Model\StaffDetail','dikeluarkan','_id'); } public function updateby(){ return $this->belongsTo('App\Model\StaffDetail','update_by','_id'); } public function confidentialfile() { return $this->belongsTo('App\Model\Module\ConfidentialFile', 'confidential_file_id', '_id'); } public function compoundinvestigation(){ return $this->hasOne('App\Model\Module\CompoundInvestigation'); } public function letternotice(){ return $this->hasMany('App\Model\Module\LetterNotice'); } public function faulty(){ return $this->belongsTo('App\Model\Module\Faulty', 'seksyen_kesalahan', '_id'); } public function department(){ return $this->belongsTo('App\Model\Module\Department', 'jbkod', '_id'); } public function deedlaw(){ return $this->belongsTo('App\Model\Module\DeedLaw', 'akta', '_id'); } }