public function delete()
{
try {
$this->deleteAllProperties();
$this->db->delete("documents_page", $this->db->quoteInto("id = ?", $this->model->getId()));
$this->db->delete("documents_printpage", $this->db->quoteInto("id = ?", $this->model->getId()));
parent::delete();
} catch (\Exception $e) {
throw $e;
}
}