Isswp101\Persimmon\DAL\IDAL::delete PHP Method

delete() public method

public delete ( ) : mixed
return mixed
    public function delete();

Usage Example

 /**
  * Delete the model.
  *
  * @return bool
  */
 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;
 }