| Conditions | 1 |
| Paths | 1 |
| Total Lines | 38 |
| Code Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 27 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 86 | 2 | public function initialize() |
|
| 87 | { |
||
| 88 | 2 | $this->hasMany( |
|
| 89 | 2 | 'id', |
|
| 90 | 2 | 'Gewaer\Models\EmailTemplatesVariables', |
|
| 91 | 2 | 'system_modules_id', |
|
| 92 | 2 | ['alias' => 'template-variables'] |
|
| 93 | ); |
||
| 94 | |||
| 95 | 2 | $this->belongsTo( |
|
| 96 | 2 | 'companies_id', |
|
| 97 | 2 | 'Gewaer\Models\Companies', |
|
| 98 | 2 | 'id', |
|
| 99 | 2 | ['alias' => 'company'] |
|
| 100 | ); |
||
| 101 | |||
| 102 | 2 | $this->belongsTo( |
|
| 103 | 2 | 'apps_id', |
|
| 104 | 2 | 'Gewaer\Models\Apps', |
|
| 105 | 2 | 'id', |
|
| 106 | 2 | ['alias' => 'app'] |
|
| 107 | ); |
||
| 108 | |||
| 109 | 2 | $this->belongsTo( |
|
| 110 | 2 | 'users_id', |
|
| 111 | 2 | 'Gewaer\Models\Users', |
|
| 112 | 2 | 'id', |
|
| 113 | 2 | ['alias' => 'user'] |
|
| 114 | ); |
||
| 115 | |||
| 116 | 2 | $this->belongsTo( |
|
| 117 | 2 | 'system_modules_id', |
|
| 118 | 2 | 'Gewaer\Models\SystemModules', |
|
| 119 | 2 | 'id', |
|
| 120 | 2 | ['alias' => 'system-modules'] |
|
| 121 | ); |
||
| 122 | |||
| 123 | 2 | $this->setSource('email_templates_variables'); |
|
| 124 | 2 | } |
|
| 136 |