Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
11 | public function initSelect() |
||
12 | { |
||
13 | return $this->selectByFields($this->getFields()) |
||
14 | ->from('zbill zb') |
||
15 | ->leftJoin('zref bt', 'bt.obj_id = zb.type_id') |
||
16 | ->leftJoin('purse zp', 'zp.obj_id = zb.purse_id') |
||
17 | ->leftJoin('zclient zc', 'zc.obj_id = zp.client_id') |
||
18 | ->leftJoin('zclient cr', 'cr.obj_id = zc.seller_id') |
||
19 | ->leftJoin('zref cu', 'cu.obj_id = zp.currency_id') |
||
20 | ->leftJoin('obj zo', 'zo.obj_id = zb.object_id') |
||
21 | ->leftJoin('zref oc', 'oc.obj_id = zo.class_id') |
||
22 | ; |
||
23 | } |
||
24 | |||
58 |