Isswp101\Persimmon\Model::delete PHP Method

delete() public method

Delete the model.
public delete ( ) : boolean
return boolean
    public function delete()
    {
        if ($this->deleting() === false) {
            return false;
        }
        $this->_dal->delete();
        $this->_exist = false;
        $cache = self::cache();
        $cache->forget($this->getId());
        if ($this->deleted() === false) {
            return false;
        }
        return true;
    }