From 1dfecffad1b0a6b61d00871ebd82e7e565e5d40d Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Wed, 25 Jan 2023 15:52:15 +0000 Subject: [PATCH] fixed getCat output --- jobs/Entity/Job.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/Entity/Job.php b/jobs/Entity/Job.php index 315be61..5d2d9bf 100644 --- a/jobs/Entity/Job.php +++ b/jobs/Entity/Job.php @@ -16,6 +16,6 @@ class Job { } public function getCat() { - return $this->catsTable->find('id', $this->categoryId); + return $this->catsTable->find('id', $this->categoryId)[0]; } } \ No newline at end of file