| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 71 | public function initialize() |
||
| 72 | { |
||
| 73 | parent::initialize(); |
||
|
|
|||
| 74 | |||
| 75 | $this->belongsTo( |
||
| 76 | 'company_id', |
||
| 77 | 'Gewaer\Models\Companies', |
||
| 78 | 'id', |
||
| 79 | ['alias' => 'company'] |
||
| 80 | ); |
||
| 81 | |||
| 82 | $this->belongsTo( |
||
| 83 | 'apps_id', |
||
| 84 | 'Gewaer\Models\Apps', |
||
| 85 | 'id', |
||
| 86 | ['alias' => 'app'] |
||
| 87 | ); |
||
| 88 | |||
| 89 | $this->belongsTo( |
||
| 90 | 'company_branches_id', |
||
| 91 | 'Gewaer\Models\CompanyBranches', |
||
| 92 | 'id', |
||
| 93 | ['alias' => 'companyBranch'] |
||
| 94 | ); |
||
| 95 | |||
| 96 | $this->setSource('user_company_apps_activities'); |
||
| 97 | } |
||
| 109 |