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