| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CustomerSystems extends Model |
||
| 9 | { |
||
| 10 | use SoftDeletes; |
||
| 11 | |||
| 12 | protected $primaryKey = 'cust_sys_id'; |
||
| 13 | protected $fillable = ['cust_id', 'sys_id']; |
||
| 14 | protected $hidden = ['created_at', 'updated_at']; |
||
| 15 | |||
| 16 | // public function Customers() |
||
| 17 | // { |
||
| 18 | // return $this->belongsTo('App\customers', 'cust_id', 'cust_id'); |
||
| 19 | // } |
||
| 20 | |||
| 21 | 4 | public function SystemTypes() |
|
| 24 | } |
||
| 25 | |||
| 26 | public function CustomerSystemData() |
||
| 27 | { |
||
| 28 | return $this->hasMany('App\CustomerSystemData', 'cust_sys_id'); |
||
| 29 | } |
||
| 30 | |||
| 31 | // public function SystemDataFields() |
||
| 32 | // { |
||
| 33 | // return $this->hasManyThrough('App\SystemDataFields', 'App\CustomerSystemData', 'cust_sys_id', 'field_id', 'cust_sys_id', 'field_id'); |
||
| 34 | // } |
||
| 35 | |||
| 36 | 2 | public function SystemDataFields() |
|
| 39 | } |
||
| 40 | } |
||
| 41 |