Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
55 | public function initialize() |
||
56 | { |
||
57 | parent::initialize(); |
||
58 | |||
59 | $this->belongsTo( |
||
60 | 'companies_id', |
||
61 | 'Gewaer\Models\Companies', |
||
62 | 'id', |
||
63 | ['alias' => 'company'] |
||
64 | ); |
||
65 | |||
66 | $this->belongsTo( |
||
67 | 'apps_id', |
||
68 | 'Gewaer\Models\Apps', |
||
69 | 'id', |
||
70 | ['alias' => 'app'] |
||
71 | ); |
||
72 | |||
73 | $this->setSource('user_company_apps'); |
||
74 | } |
||
99 |