Inheritance: extends Pimcore\Model\Document\Dao
Ejemplo n.º 1
0
 /**
  * Deletes the object from database
  *
  * @throws \Exception
  */
 public function delete()
 {
     try {
         $this->db->delete("documents_snippet", $this->db->quoteInto("id = ?", $this->model->getId()));
         parent::delete();
     } catch (\Exception $e) {
         throw $e;
     }
 }
Ejemplo n.º 2
0
 /**
  * Deletes the object (and data) from database
  *
  * @throws \Exception
  */
 public function delete()
 {
     try {
         $this->deleteAllProperties();
         $this->db->delete("documents_page", $this->db->quoteInto("id = ?", $this->model->getId()));
         parent::delete();
     } catch (\Exception $e) {
         throw $e;
     }
 }
Ejemplo n.º 3
0
 /**
  * Deletes the object (and data) from database
  *
  * @return void
  */
 public function delete()
 {
     try {
         $this->deleteAllProperties();
         $this->db->delete("documents_email", $this->db->quoteInto("id = ?", $this->model->getId()));
         //deleting log files
         $this->db->delete("email_log", $this->db->quoteInto("documentId = ?", $this->model->getId()));
         parent::delete();
     } catch (\Exception $e) {
         throw $e;
     }
 }