/**
* Deletes the object (and data) from database
*
* @throws \Exception
*/
public function delete()
{
try {
$this->db->delete("documents_link", $this->db->quoteInto("id = ?", $this->model->getId()));
parent::delete();
} catch (\Exception $e) {
throw $e;
}
}