Isswp101\Persimmon\Model::delete PHP Méthode

delete() public méthode

Delete the model.
public delete ( ) : boolean
Résultat 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;
    }