public function update(Task $task)
    {
        $this->om->persist($task);
        $this->om->flush();

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

        return $task;
    }
public function update(Task $task)
    {
        $this->om->persist($task);
        $this->om->flush();

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

        return $task;
    }
public function update ( Task $ task ) { $ this -> om -> persist ( $ task ) ; $ this -> om -> flush ( ) ; $ this -> notify ( NotifierInterface :: MESSAGE_UPDATE ) ; return $ task ; }
Updates a Task in the manager.

@param Task $task

@return Task
Updates a Task in the manager .