| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 46 | public function search( |
||
| 47 | array $params, |
||
| 48 | ?string $formName = '' |
||
| 49 | ): ?ActiveDataProvider { |
||
| 50 | $this->load($params, $formName); |
||
| 51 | if (!$this->validate()) { |
||
| 52 | return null; |
||
| 53 | } |
||
| 54 | |||
| 55 | $class = get_parent_class(); |
||
| 56 | return new ActiveDataProvider([ |
||
| 57 | 'query' => $class::find() |
||
| 58 | ->joinWith('activeWorkLog') |
||
| 59 | ->andFilterWhere([ |
||
| 60 | 'credit.created_by' => $this->created_by, |
||
|
|
|||
| 61 | 'activeWorkLog.stage_id' => $this->activeStage, |
||
| 62 | ]) |
||
| 66 |