diff --git a/Admin/Install/Application/Timerecording/Application.php b/Admin/Install/Application/Timerecording/Application.php index 261aa8f..000ef75 100644 --- a/Admin/Install/Application/Timerecording/Application.php +++ b/Admin/Install/Application/Timerecording/Application.php @@ -434,7 +434,7 @@ final class Application private function createDefaultPageView(HttpRequest $request, HttpResponse $response, TimerecordingView $pageView) : void { $pageView->setOrganizations(UnitMapper::getAll()->execute()); - $pageView->profile = ProfileMapper::get()->where('account', $request->header->account)->execute(); + $pageView->profile = ProfileMapper::get()->where('account', $request->header->account)->executeGetArray(); $pageView->setData('nav', $this->getNavigation($request, $response)); $pageView->setTemplate('/Web/Timerecording/index'); diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 8c6601d..8816537 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -58,7 +58,7 @@ final class BackendController extends Controller implements DashboardElementInte $view->data['employees'] = EmployeeMapper::getAll() ->with('profile') ->with('profile/account') - ->execute(); + ->executeGetArray(); return $view; } @@ -102,7 +102,7 @@ final class BackendController extends Controller implements DashboardElementInte ->where('employee', $employee->profile->account->id) ->where('start', $start, '<=') ->sort('start', OrderType::DESC) - ->execute(); + ->executeGetArray(); $view->data['sessions'] = $list; $view->data['lastSession'] = $lastOpenSession; diff --git a/Controller/TimerecordingController.php b/Controller/TimerecordingController.php index 984c078..293376a 100755 --- a/Controller/TimerecordingController.php +++ b/Controller/TimerecordingController.php @@ -49,7 +49,7 @@ final class TimerecordingController extends Controller $view->setTemplate('/Modules/HumanResourceTimeRecording/Theme/Timeterminal/overview'); $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006301001, $request, $response); - $list = SessionMapper::getAll()->sort('id', OrderType::DESC)->limit(50)->execute(); + $list = SessionMapper::getAll()->sort('id', OrderType::DESC)->limit(50)->executeGetArray(); $view->data['sessions'] = $list; return $view; diff --git a/tests/Models/SessionElementTest.php b/tests/Models/SessionElementTest.php index 32cd4c6..dae7dde 100755 --- a/tests/Models/SessionElementTest.php +++ b/tests/Models/SessionElementTest.php @@ -54,7 +54,7 @@ final class SessionElementTest extends \PHPUnit\Framework\TestCase public function testSerialize() : void { $this->element->session = new NullSession(2); - $this->element->status = ClockingStatus::END; + $this->element->status = ClockingStatus::END; $serialized = $this->element->jsonSerialize(); unset($serialized['datetime']);