| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | View Code Duplication | public function joinWithPrices() |
|
| 54 | { |
||
| 55 | return $this->joinWith([ |
||
| 56 | 'prices' => function (ActiveQuery $query) { |
||
| 57 | $query |
||
| 58 | ->addSelect('main_object_id') |
||
| 59 | ->joinWith('object') |
||
| 60 | ->limit(-1); |
||
| 61 | }, |
||
| 62 | ]); |
||
| 63 | } |
||
| 64 | |||
| 95 |