plugin/drop-zone/Manager/DropzoneManager.php
public function updateDropProgression(Dropzone $dropzone, Drop $drop, $progression)
    {
        $this->om->startFlushSuite();

        if (Dropzone::DROP_TYPE_TEAM === $dropzone->getDropType()) {
            foreach ($drop->getUsers() as $user) {
                $this->resourceEvalManager->createResourceEvaluation(
                    $dropzone->getResourceNode(),
                    $user,
                    null,
                    ['progression' => $progression, 'data' => $this->serializeDrop($drop)],
                    ['progression' => true]
                );
            }
        } else {
            $this->resourceEvalManager->createResourceEvaluation(
                $dropzone->getResourceNode(),
                $drop->getUser(),
                null,
                ['progression' => $progression, 'data' => $this->serializeDrop($drop)],
                ['progression' => true]
            );
        }
        $this->om->endFlushSuite();
    }
public function updateDropProgression(Dropzone $dropzone, Drop $drop, $progression)
    {
        $this->om->startFlushSuite();

        if (Dropzone::DROP_TYPE_TEAM === $dropzone->getDropType()) {
            foreach ($drop->getUsers() as $user) {
                $this->resourceEvalManager->createResourceEvaluation(
                    $dropzone->getResourceNode(),
                    $user,
                    null,
                    ['progression' => $progression, 'data' => $this->serializeDrop($drop)],
                    ['progression' => true]
                );
            }
        } else {
            $this->resourceEvalManager->createResourceEvaluation(
                $dropzone->getResourceNode(),
                $drop->getUser(),
                null,
                ['progression' => $progression, 'data' => $this->serializeDrop($drop)],
                ['progression' => true]
            );
        }
        $this->om->endFlushSuite();
    }
public function updateDropProgression ( Dropzone $ dropzone , Drop $ drop , $ progression ) { $ this -> om -> startFlushSuite ( ) ; if ( Dropzone :: DROP_TYPE_TEAM === $ dropzone -> getDropType ( ) ) { foreach ( $ drop -> getUsers ( ) as $ user ) { $ this -> resourceEvalManager -> createResourceEvaluation ( $ dropzone -> getResourceNode ( ) , $ user , null , [ 'progression' => $ progression , 'data' => $ this -> serializeDrop ( $ drop ) ] , [ 'progression' => true ] ) ; } } else { $ this -> resourceEvalManager -> createResourceEvaluation ( $ dropzone -> getResourceNode ( ) , $ drop -> getUser ( ) , null , [ 'progression' => $ progression , 'data' => $ this -> serializeDrop ( $ drop ) ] , [ 'progression' => true ] ) ; } $ this -> om -> endFlushSuite ( ) ; }
Updates progression of ResourceEvaluation for drop.

@param Dropzone $dropzone
@param Drop     $drop
@param int      $progression

@return ResourceUserEvaluation
Updates progression of ResourceEvaluation for drop .