mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-19 00:59:23 +02:00
update ORM so it can use array for select
This commit is contained in:
parent
cf8e23ae88
commit
238fc03d03
2 changed files with 2713 additions and 2515 deletions
|
@ -177,21 +177,13 @@ class User
|
||||||
}
|
}
|
||||||
$d = ORM::for_table('tbl_user_recharges')
|
$d = ORM::for_table('tbl_user_recharges')
|
||||||
->select('tbl_user_recharges.id', 'id')
|
->select('tbl_user_recharges.id', 'id')
|
||||||
->select('customer_id')
|
->selects([
|
||||||
->select('username')
|
'customer_id', 'username', 'plan_id', 'namebp', 'recharged_on', 'recharged_time', 'expiration', 'time',
|
||||||
->select('plan_id')
|
'status', 'method', 'plan_type',
|
||||||
->select('namebp')
|
['tbl_user_recharges.routers', 'routers'],
|
||||||
->select('recharged_on')
|
['tbl_user_recharges.type', 'type'],
|
||||||
->select('recharged_time')
|
'admin_id', 'prepaid'
|
||||||
->select('expiration')
|
])
|
||||||
->select('time')
|
|
||||||
->select('status')
|
|
||||||
->select('method')
|
|
||||||
->select('plan_type')
|
|
||||||
->select('tbl_user_recharges.routers', 'routers')
|
|
||||||
->select('tbl_user_recharges.type', 'type')
|
|
||||||
->select('admin_id')
|
|
||||||
->select('prepaid')
|
|
||||||
->where('customer_id', $id)
|
->where('customer_id', $id)
|
||||||
->join('tbl_plans', array('tbl_plans.id', '=', 'tbl_user_recharges.plan_id'))
|
->join('tbl_plans', array('tbl_plans.id', '=', 'tbl_user_recharges.plan_id'))
|
||||||
->find_many();
|
->find_many();
|
||||||
|
|
584
system/orm.php
584
system/orm.php
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue