예제 #1
0
 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);
 }