public function delete($id) { $this->createChunksIndex(); $this->chunks->remove(['files_id' => $id], ['justOne' => false]); return parent::remove(['_id' => $id]); }
/** * delete. */ public function delete($id) { $this->time->start(); $return = parent::delete($id); $time = $this->time->stop(); $this->log(array('type' => 'delete', 'id' => $id, 'time' => $time)); return $return; }