diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 031ce1b..4a3be41 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -151,6 +151,7 @@ final class BackendController extends Controller $view->setTemplate('/Modules/FleetManagement/Theme/Backend/vehicle-profile'); $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() ->with('attributes') ->with('attributes/type') diff --git a/Models/Vehicle.php b/Models/Vehicle.php index fb1b779..80f67a0 100644 --- a/Models/Vehicle.php +++ b/Models/Vehicle.php @@ -44,8 +44,6 @@ class Vehicle implements \JsonSerializable public array $milage = []; - public array $notes = []; - public int $unit = 0; public ?int $responsible = null; @@ -76,7 +74,8 @@ class Vehicle implements \JsonSerializable { return $this->toArray(); } - + use \Modules\Media\Models\MediaListTrait; + use \Modules\Editor\Models\EditorDocListTrait; use \Modules\Attribute\Models\AttributeHolderTrait; }