Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
47 | 4 | public function initialize() |
|
48 | { |
||
49 | 4 | $this->belongsTo( |
|
50 | 4 | 'companies_id', |
|
51 | 4 | 'Gewaer\Models\Companies', |
|
52 | 4 | 'id', |
|
53 | 4 | ['alias' => 'company'] |
|
54 | ); |
||
55 | |||
56 | 4 | $this->belongsTo( |
|
57 | 4 | 'apps_id', |
|
58 | 4 | 'Gewaer\Models\Apps', |
|
59 | 4 | 'id', |
|
60 | 4 | ['alias' => 'app'] |
|
61 | ); |
||
62 | |||
63 | 4 | $this->setSource('users_associated_apps'); |
|
64 | 4 | } |
|
76 |