plugin/result/Manager/ResultManager.php
public function createMark(Result $result, User $user, $mark)
    {
        $mark = new Mark($result, $user, $mark);
        $this->om->persist($mark);
        $this->om->flush();

        $newMarkEvent = new LogResultsNewMarkEvent($mark);
        $this->dispatcher->dispatch('log', $newMarkEvent);

        return $mark;
    }
public function createMark(Result $result, User $user, $mark)
    {
        $mark = new Mark($result, $user, $mark);
        $this->om->persist($mark);
        $this->om->flush();

        $newMarkEvent = new LogResultsNewMarkEvent($mark);
        $this->dispatcher->dispatch('log', $newMarkEvent);

        return $mark;
    }
public function createMark ( Result $ result , User $ user , $ mark ) { $ mark = new Mark ( $ result , $ user , $ mark ) ; $ this -> om -> persist ( $ mark ) ; $ this -> om -> flush ( ) ; $ newMarkEvent = new LogResultsNewMarkEvent ( $ mark ) ; $ this -> dispatcher -> dispatch ( 'log' , $ newMarkEvent ) ; return $ mark ; }
Creates a new mark.

@param Result $result
@param User   $user
@param string $mark

@return mark
Creates a new mark .