diff --git a/src/Command/DaemonCommand.php b/src/Command/DaemonCommand.php index c654045..b166c02 100644 --- a/src/Command/DaemonCommand.php +++ b/src/Command/DaemonCommand.php @@ -84,6 +84,7 @@ class DaemonCommand extends Command } } } + $this->doctrine->getManager()->clear(); sleep(1); } $output->writeln('Ended after ' . $timelimit . ' seconds'); diff --git a/src/Repository/JobRepository.php b/src/Repository/JobRepository.php index b6331bc..f155c0e 100644 --- a/src/Repository/JobRepository.php +++ b/src/Repository/JobRepository.php @@ -613,7 +613,7 @@ class JobRepository extends EntityRepository switch($job->getData('hosttype')) { default: - if($job->getData('crotype') == 'http') break; + if($job->getData('crontype') == 'http') break; $job->setData('hosttype', 'local'); case 'local': $job->setData('host', 'localhost');