diff --git a/jobs/Entity/Applicant.php b/jobs/Entity/Applicant.php new file mode 100644 index 0000000..3eabab5 --- /dev/null +++ b/jobs/Entity/Applicant.php @@ -0,0 +1,20 @@ +jobsTable = $jobsTable; + } + + public function getJob() { + return $this->jobsTable->find('id', $this->jobId)[0]; + } +} +?> \ No newline at end of file diff --git a/jobs/Entity/Category.php b/jobs/Entity/Category.php new file mode 100644 index 0000000..ca84e3f --- /dev/null +++ b/jobs/Entity/Category.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/jobs/Entity/Job.php b/jobs/Entity/Job.php new file mode 100644 index 0000000..06b0cc5 --- /dev/null +++ b/jobs/Entity/Job.php @@ -0,0 +1,19 @@ +catsTable = $catsTable; + } + + public function getCat() { + return $this->catsTable->find('id', $this->categoryId); + } +} \ No newline at end of file