Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 11 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
41 | View Code Duplication | public function withPrices() |
|
42 | { |
||
43 | return $this->with([ |
||
44 | 'prices' => function (ActiveQuery $query) { |
||
45 | $query |
||
46 | ->addSelect('main_object_id') |
||
47 | ->joinWith('object') |
||
48 | ->limit(-1); |
||
49 | }, |
||
50 | ]); |
||
51 | } |
||
52 | |||
65 |