Pimcore\Model\Document\PageSnippet\Dao::delete PHP Метод

delete() публичный Метод

Delete the object from database
public delete ( )
    public function delete()
    {
        try {
            parent::delete();
            $this->db->delete("documents_elements", $this->db->quoteInto("documentId = ?", $this->model->getId()));
        } catch (\Exception $e) {
            throw $e;
        }
    }

Usage Example

Пример #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;
     }
 }
All Usage Examples Of Pimcore\Model\Document\PageSnippet\Dao::delete