plugin/drop-zone/Manager/DropzoneManager.php
public function saveTool(array $data)
    {
        $tool = $this->serializer->get(DropzoneTool::class)->deserialize($data);
        $this->om->persist($tool);
        $this->om->flush();

        return $tool;
    }
public function saveTool(array $data)
    {
        $tool = $this->serializer->get(DropzoneTool::class)->deserialize($data);
        $this->om->persist($tool);
        $this->om->flush();

        return $tool;
    }
public function saveTool ( array $ data ) { $ tool = $ this -> serializer -> get ( DropzoneTool :: class ) -> deserialize ( $ data ) ; $ this -> om -> persist ( $ tool ) ; $ this -> om -> flush ( ) ; return $ tool ; }
Updates a Tool.

@param array $data

@return Tool
Updates a Tool .