public function resetCrashes(Task $task)
    {
        $task->setCrashed(0);

        $this->om->persist($task);
        $this->om->flush();

        $this->notify(NotifierInterface::MESSAGE_UPDATE);

        return $task;
    }
public function resetCrashes(Task $task)
    {
        $task->setCrashed(0);

        $this->om->persist($task);
        $this->om->flush();

        $this->notify(NotifierInterface::MESSAGE_UPDATE);

        return $task;
    }
public function resetCrashes ( Task $ task ) { $ task -> setCrashed ( 0 ) ; $ this -> om -> persist ( $ task ) ; $ this -> om -> flush ( ) ; $ this -> notify ( NotifierInterface :: MESSAGE_UPDATE ) ; return $ task ; }
Reset the number of crashes of the task.

@param Task $task

@return Task
Reset the number of crashes of the task .