Conditions | 1 |
Paths | 1 |
Total Lines | 30 |
Code Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
53 | public function initialize() |
||
54 | { |
||
55 | $this->setSource('user_roles'); |
||
56 | |||
57 | $this->belongsTo( |
||
58 | 'users_id', |
||
59 | 'Gewaer\Models\Users', |
||
60 | 'id', |
||
61 | ['alias' => 'user'] |
||
62 | ); |
||
63 | |||
64 | $this->belongsTo( |
||
65 | 'roles_id', |
||
66 | 'Gewaer\Models\Roles', |
||
67 | 'id', |
||
68 | ['alias' => 'roles'] |
||
69 | ); |
||
70 | |||
71 | $this->belongsTo( |
||
72 | 'apps_id', |
||
73 | 'Gewaer\Models\Apps', |
||
74 | 'id', |
||
75 | ['alias' => 'app'] |
||
76 | ); |
||
77 | |||
78 | $this->belongsTo( |
||
79 | 'companies_id', |
||
80 | 'Gewaer\Models\Companies', |
||
81 | 'id', |
||
82 | ['alias' => 'company'] |
||
83 | ); |
||
96 |