plugin/dropzone/Repository/DropRepository.php
public function closeUnTerminatedDropsByDropzone($dropzoneId)
    {
        $qb = $this->createQueryBuilder('drop')
            ->update('Icap\\DropzoneBundle\\Entity\\Drop', 'd')
            ->set('d.autoClosedDrop', 1)
            ->set('d.finished', 1)
            ->andWhere('d.dropzone = :dropzoneId')
            ->andWhere('d.finished = 0')
            ->setParameter('dropzoneId', $dropzoneId);
        $qb->getQuery()->execute();
    }
public function closeUnTerminatedDropsByDropzone($dropzoneId)
    {
        $qb = $this->createQueryBuilder('drop')
            ->update('Icap\\DropzoneBundle\\Entity\\Drop', 'd')
            ->set('d.autoClosedDrop', 1)
            ->set('d.finished', 1)
            ->andWhere('d.dropzone = :dropzoneId')
            ->andWhere('d.finished = 0')
            ->setParameter('dropzoneId', $dropzoneId);
        $qb->getQuery()->execute();
    }
public function closeUnTerminatedDropsByDropzone ( $ dropzoneId ) { $ qb = $ this -> createQueryBuilder ( 'drop' ) -> update ( 'Icap\\DropzoneBundle\\Entity\\Drop' , 'd' ) -> set ( 'd.autoClosedDrop' , 1 ) -> set ( 'd.finished' , 1 ) -> andWhere ( 'd.dropzone = :dropzoneId' ) -> andWhere ( 'd.finished = 0' ) -> setParameter ( 'dropzoneId' , $ dropzoneId ) ; $ qb -> getQuery ( ) -> execute ( ) ; }
Close unclosed drops in a dropzone.

@param $dropzoneId
Close unclosed drops in a dropzone .