public function loadJob(Job $job) { $jobData = $this->_table()->find()->where(['id' => $job->getId()])->hydrate(false)->first(); if ($jobData === null) { throw new JobNotFoundException(sprintf('Job with id "%s" does not exist in the datastore.', $job->getId())); } return $job->setData($jobData); }