plugin/drop-zone/Manager/DropzoneManager.php
public function deleteCorrection(Correction $correction)
    {
        $this->om->startFlushSuite();

        $drop = $correction->getDrop();
        $drop->removeCorrection($correction);
        $this->om->remove($correction);
        $drop = $this->computeDropScore($drop);
        $this->checkSuccess($drop);

        $this->om->endFlushSuite();

        $this->eventDispatcher->dispatch('log', new LogCorrectionDeleteEvent($correction->getDrop()->getDropzone(), $drop, $correction));
    }
public function deleteCorrection(Correction $correction)
    {
        $this->om->startFlushSuite();

        $drop = $correction->getDrop();
        $drop->removeCorrection($correction);
        $this->om->remove($correction);
        $drop = $this->computeDropScore($drop);
        $this->checkSuccess($drop);

        $this->om->endFlushSuite();

        $this->eventDispatcher->dispatch('log', new LogCorrectionDeleteEvent($correction->getDrop()->getDropzone(), $drop, $correction));
    }
public function deleteCorrection ( Correction $ correction ) { $ this -> om -> startFlushSuite ( ) ; $ drop = $ correction -> getDrop ( ) ; $ drop -> removeCorrection ( $ correction ) ; $ this -> om -> remove ( $ correction ) ; $ drop = $ this -> computeDropScore ( $ drop ) ; $ this -> checkSuccess ( $ drop ) ; $ this -> om -> endFlushSuite ( ) ; $ this -> eventDispatcher -> dispatch ( 'log' , new LogCorrectionDeleteEvent ( $ correction -> getDrop ( ) -> getDropzone ( ) , $ drop , $ correction ) ) ; }
Deletes a Correction.

@param Correction $correction
Deletes a Correction .