mirror of
https://github.com/Karaka-Management/oms-FleetManagement.git
synced 2026-02-17 22:08:41 +00:00
Implement helper traits
This commit is contained in:
parent
64b6bd4ea9
commit
37f7adc7d8
|
|
@ -151,6 +151,7 @@ final class BackendController extends Controller
|
||||||
$view->setTemplate('/Modules/FleetManagement/Theme/Backend/vehicle-profile');
|
$view->setTemplate('/Modules/FleetManagement/Theme/Backend/vehicle-profile');
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003502001, $request, $response);
|
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003502001, $request, $response);
|
||||||
|
|
||||||
|
// @todo: This langauge filtering doesn't work. But it was working with the old mappers. Maybe there is a bug in the where() definition. Need to inspect the actual query.
|
||||||
$vehicle = VehicleMapper::get()
|
$vehicle = VehicleMapper::get()
|
||||||
->with('attributes')
|
->with('attributes')
|
||||||
->with('attributes/type')
|
->with('attributes/type')
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,6 @@ class Vehicle implements \JsonSerializable
|
||||||
|
|
||||||
public array $milage = [];
|
public array $milage = [];
|
||||||
|
|
||||||
public array $notes = [];
|
|
||||||
|
|
||||||
public int $unit = 0;
|
public int $unit = 0;
|
||||||
|
|
||||||
public ?int $responsible = null;
|
public ?int $responsible = null;
|
||||||
|
|
@ -78,5 +76,6 @@ class Vehicle implements \JsonSerializable
|
||||||
}
|
}
|
||||||
|
|
||||||
use \Modules\Media\Models\MediaListTrait;
|
use \Modules\Media\Models\MediaListTrait;
|
||||||
|
use \Modules\Editor\Models\EditorDocListTrait;
|
||||||
use \Modules\Attribute\Models\AttributeHolderTrait;
|
use \Modules\Attribute\Models\AttributeHolderTrait;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user