Пример #1
0
 /**
  * Delete the object from database
  *
  * @return void
  */
 public function delete()
 {
     try {
         parent::delete();
         $this->db->delete("documents_elements", $this->db->quoteInto("documentId = ?", $this->model->getId()));
     } catch (Exception $e) {
         throw $e;
     }
 }
Пример #2
0
 /**
  * Deletes the folder
  *
  * @return void
  */
 public function delete()
 {
     parent::delete();
 }
Пример #3
0
 /**
  * Deletes the object (and data) from database
  *
  * @return void
  */
 public function delete()
 {
     try {
         $this->db->delete("documents_hardlink", $this->db->quoteInto("id = ?", $this->model->getId()));
         parent::delete();
     } catch (Exception $e) {
         throw $e;
     }
 }