diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index cd9d66e..9997675 100644 --- a/Controller/ApiAttributeController.php +++ b/Controller/ApiAttributeController.php @@ -71,7 +71,7 @@ final class ApiAttributeController extends Controller ->with('type') ->where('type/id', $type->id) ->where('ref', (int) $request->getData('ref')) - ->execute(); + ->executeCount(); if ($attr > 0) { $response->header->status = RequestStatusCode::R_409; diff --git a/Controller/ApiController.php b/Controller/ApiController.php index e8cf31b..7d4c52c 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -229,7 +229,7 @@ final class ApiController extends Controller $profile = ProfileMapper::count() ->where('account', $rel->relation->id) - ->execute(); + ->executeCount(); if ($profile < 1) { continue; @@ -267,7 +267,7 @@ final class ApiController extends Controller $profile = ProfileMapper::count() ->where('account', $account->id) - ->execute(); + ->executeCount(); if ($profile < 1) { continue; diff --git a/Controller/BackendController.php b/Controller/BackendController.php index b6378ff..618f0c9 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -184,13 +184,13 @@ final class BackendController extends Controller implements DashboardElementInte if ($request->getData('ptype') === 'p') { $view->data['tasks'] = $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '<') - ->execute(); + ->executeGetAll(); } elseif ($request->getData('ptype') === 'n') { $view->data['tasks'] = $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '>') - ->execute(); + ->executeGetAll(); } else { $view->data['tasks'] = $mapperQuery->where('id', 0, '>') - ->execute(); + ->executeGetAll(); } $view->data['task_media'] = [];