public function delete() { db::query('DELETE FROM documents WHERE id = ' . db::value($this->id)); Snapshot::delete($this); }