src/Event/Listener/Project.php
public function onUpdatedProposeUpdateTask()
    {
        /* @var $task Task */
        $task = $this->em
            ->getRepository('AnimeDbAppBundle:Task')
            ->findOneBy(['command' => 'animedb:propose-update']);

        $next_run = new \DateTime();
        $next_run->modify(sprintf('+%s seconds  01:00:00', ProposeUpdateCommand::INERVAL_UPDATE));

        $this->em->persist($task->setNextRun($next_run));
        $this->em->flush();
    }
public function onUpdatedProposeUpdateTask()
    {
        /* @var $task Task */
        $task = $this->em
            ->getRepository('AnimeDbAppBundle:Task')
            ->findOneBy(['command' => 'animedb:propose-update']);

        $next_run = new \DateTime();
        $next_run->modify(sprintf('+%s seconds  01:00:00', ProposeUpdateCommand::INERVAL_UPDATE));

        $this->em->persist($task->setNextRun($next_run));
        $this->em->flush();
    }
public function onUpdatedProposeUpdateTask ( ) { /* @var $task Task */ $ task = $ this -> em -> getRepository ( 'AnimeDbAppBundle:Task' ) -> findOneBy ( [ 'command' => 'animedb:propose-update' ] ) ; $ next_run = new \ DateTime ( ) ; $ next_run -> modify ( sprintf ( '+%s seconds  01:00:00' , ProposeUpdateCommand :: INERVAL_UPDATE ) ) ; $ this -> em -> persist ( $ task -> setNextRun ( $ next_run ) ) ; $ this -> em -> flush ( ) ; }
Update next run date for the propose update task.
Update next run date for the propose update task .