Conditions | 1 |
Paths | 1 |
Total Lines | 38 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Tests | 27 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
71 | 65 | public function initialize() |
|
72 | { |
||
73 | 65 | $this->hasMany( |
|
74 | 65 | 'id', |
|
75 | 65 | 'Gewaer\Models\EmailTemplatesVariables', |
|
76 | 65 | 'system_modules_id', |
|
77 | 65 | ['alias' => 'templateVariable'] |
|
78 | ); |
||
79 | |||
80 | 65 | $this->hasMany( |
|
81 | 65 | 'id', |
|
82 | 65 | 'Gewaer\Models\Webhooks', |
|
83 | 65 | 'system_modules_id', |
|
84 | 65 | ['alias' => 'webhook'] |
|
85 | ); |
||
86 | |||
87 | 65 | $this->belongsTo( |
|
88 | 65 | 'companies_id', |
|
89 | 65 | 'Gewaer\Models\Companies', |
|
90 | 65 | 'id', |
|
91 | 65 | ['alias' => 'company'] |
|
92 | ); |
||
93 | |||
94 | 65 | $this->belongsTo( |
|
95 | 65 | 'apps_id', |
|
96 | 65 | 'Gewaer\Models\Apps', |
|
97 | 65 | 'id', |
|
98 | 65 | ['alias' => 'app'] |
|
99 | ); |
||
100 | |||
101 | 65 | $this->belongsTo( |
|
102 | 65 | 'company_branches_id', |
|
103 | 65 | 'Gewaer\Models\CompanyBranches', |
|
104 | 65 | 'id', |
|
105 | 65 | ['alias' => 'companyBranch'] |
|
106 | ); |
||
107 | |||
108 | 65 | $this->setSource('user_company_apps_activities'); |
|
109 | 65 | } |
|
121 |