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

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

Delete the row from the database. (based on the model id)
public delete ( )
    public function delete()
    {
        try {
            $this->db->delete("documents", $this->db->quoteInto("id = ?", $this->model->getId()));
        } catch (\Exception $e) {
            throw $e;
        }
    }

Usage Example

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