plugin/drop-zone/Manager/DropzoneManager.php
public function submitDrop(Drop $drop, User $user)
    {
        $this->om->startFlushSuite();

        $drop->setFinished(true);
        $drop->setDropDate(new \DateTime());

        if ($drop->getTeamUuid()) {
            $drop->setUser($user);
        }
        $users = $drop->getTeamUuid() ? $drop->getUsers() : [$drop->getUser()];
        $this->om->persist($drop);
        $this->checkCompletion($drop->getDropzone(), $users, $drop);

        $this->om->endFlushSuite();

        $this->eventDispatcher->dispatch('log', new LogDropEndEvent($drop->getDropzone(), $drop, $this->roleManager));
    }
public function submitDrop(Drop $drop, User $user)
    {
        $this->om->startFlushSuite();

        $drop->setFinished(true);
        $drop->setDropDate(new \DateTime());

        if ($drop->getTeamUuid()) {
            $drop->setUser($user);
        }
        $users = $drop->getTeamUuid() ? $drop->getUsers() : [$drop->getUser()];
        $this->om->persist($drop);
        $this->checkCompletion($drop->getDropzone(), $users, $drop);

        $this->om->endFlushSuite();

        $this->eventDispatcher->dispatch('log', new LogDropEndEvent($drop->getDropzone(), $drop, $this->roleManager));
    }
public function submitDrop ( Drop $ drop , User $ user ) { $ this -> om -> startFlushSuite ( ) ; $ drop -> setFinished ( true ) ; $ drop -> setDropDate ( new \ DateTime ( ) ) ; if ( $ drop -> getTeamUuid ( ) ) { $ drop -> setUser ( $ user ) ; } $ users = $ drop -> getTeamUuid ( ) ? $ drop -> getUsers ( ) : [ $ drop -> getUser ( ) ] ; $ this -> om -> persist ( $ drop ) ; $ this -> checkCompletion ( $ drop -> getDropzone ( ) , $ users , $ drop ) ; $ this -> om -> endFlushSuite ( ) ; $ this -> eventDispatcher -> dispatch ( 'log' , new LogDropEndEvent ( $ drop -> getDropzone ( ) , $ drop , $ this -> roleManager ) ) ; }
Terminates a drop.

@param Drop $drop
@param User $user
Terminates a drop .