Eager load some models
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
return array (
|
||||
'app_version' => 'v2.0-206',
|
||||
'hash_version' => 'v2.0-206-g69c95f1',
|
||||
'app_version' => 'v2.0-314',
|
||||
'hash_version' => 'v2.0-314-gdba7983',
|
||||
);
|
||||
@@ -1095,7 +1095,7 @@ class AssetsController extends AdminController
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$assets = Asset::with('model','assigneduser','assigneduser.userloc','assetstatus','defaultLoc','assetlog','model','model.category')->Hardware()->select(array('assets.id', 'assets.name','assets.model_id','assets.assigned_to','assets.asset_tag','assets.serial','assets.status_id','assets.purchase_date','assets.deleted_at','assets.rtd_location_id','assets.notes','assets.order_number'));
|
||||
$assets = Asset::with('model','assigneduser','assigneduser.userloc','assetstatus','defaultLoc','assetlog','model','model.category','assetstatus')->Hardware()->select(array('assets.id', 'assets.name','assets.model_id','assets.assigned_to','assets.asset_tag','assets.serial','assets.status_id','assets.purchase_date','assets.deleted_at','assets.rtd_location_id','assets.notes','assets.order_number'));
|
||||
|
||||
|
||||
switch ($status) {
|
||||
|
||||
Reference in New Issue
Block a user