src/Towel/Model/BaseModel.php
public function delete() {
    if ($this->isNew()) {
      throw new \Exception('ID is not setted for Delete');
    }

    $this->db()->delete($this->table, $this->identifier());
    $this->isDeleted = TRUE;

    return $this;
  }
public function delete() {
    if ($this->isNew()) {
      throw new \Exception('ID is not setted for Delete');
    }

    $this->db()->delete($this->table, $this->identifier());
    $this->isDeleted = TRUE;

    return $this;
  }
public function delete ( ) { if ( $ this -> isNew ( ) ) { throw new \ Exception ( 'ID is not setted for Delete' ) ; } $ this -> db ( ) -> delete ( $ this -> table , $ this -> identifier ( ) ) ; $ this -> isDeleted = TRUE ; return $ this ; }
Deletes the record.

@return $this

@throws \Exception
Deletes the record .