/** * Deletes a cron task by id * * @param $id * @throws CronTaskNotExistsException */ public function deleteById($id) { $cronTask = $this->_cronTaskRepository->find($id); if ($cronTask === null) { throw new CronTaskNotExistsException($id); } $this->_entityManager->remove($cronTask); }
/** * @return TblCronTask[] */ public function getActiveCronTasks() { return $this->_cronTaskRepository->getActiveCronTasks(); }