| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function initialize() |
||
| 48 | { |
||
| 49 | $this->setSource('custom_fields_modules'); |
||
| 50 | |||
| 51 | $this->belongsTo( |
||
| 52 | 'companies_id', |
||
| 53 | 'Canvas\Models\Companies', |
||
| 54 | 'id', |
||
| 55 | ['alias' => 'company'] |
||
| 56 | ); |
||
| 57 | |||
| 58 | $this->hasMany( |
||
| 59 | 'id', |
||
| 60 | 'Canvas\CustomFields\CustomFields', |
||
| 61 | 'custom_fields_modules_id', |
||
| 62 | ['alias' => 'fields'] |
||
| 63 | ); |
||
| 83 |