plugin/drop-zone/Manager/DropzoneManager.php
public function createToolDocument(DropzoneTool $tool, Document $document, $idDocument = null, $reportUrl = null)
    {
        $toolDocument = new DropzoneToolDocument();
        $toolDocument->setTool($tool);
        $toolDocument->setDocument($document);
        $data = ['idDocument' => $idDocument, 'reportUrl' => $reportUrl];
        $toolDocument->setData($data);
        $this->om->persist($toolDocument);
        $this->om->flush();
    }
public function createToolDocument(DropzoneTool $tool, Document $document, $idDocument = null, $reportUrl = null)
    {
        $toolDocument = new DropzoneToolDocument();
        $toolDocument->setTool($tool);
        $toolDocument->setDocument($document);
        $data = ['idDocument' => $idDocument, 'reportUrl' => $reportUrl];
        $toolDocument->setData($data);
        $this->om->persist($toolDocument);
        $this->om->flush();
    }
public function createToolDocument ( DropzoneTool $ tool , Document $ document , $ idDocument = null , $ reportUrl = null ) { $ toolDocument = new DropzoneToolDocument ( ) ; $ toolDocument -> setTool ( $ tool ) ; $ toolDocument -> setDocument ( $ document ) ; $ data = [ 'idDocument' => $ idDocument , 'reportUrl' => $ reportUrl ] ; $ toolDocument -> setData ( $ data ) ; $ this -> om -> persist ( $ toolDocument ) ; $ this -> om -> flush ( ) ; }
Associates data generated by a Tool to a Document.

@param DropzoneTool $tool
@param Document     $document
@param string       $idDocument
@param string       $reportUrl
Associates data generated by a Tool to a Document .