public function deleteAll()
    {
        if ($this->loaded()) {
            $this->unload();
        }
        $this->hook('beforeDeleteAll');
        $this->controller->deleteAll($this);
        $this->hook('afterDeleteAll');

        return $this;
    }
public function deleteAll()
    {
        if ($this->loaded()) {
            $this->unload();
        }
        $this->hook('beforeDeleteAll');
        $this->controller->deleteAll($this);
        $this->hook('afterDeleteAll');

        return $this;
    }
public function deleteAll ( ) { if ( $ this -> loaded ( ) ) { $ this -> unload ( ) ; } $ this -> hook ( 'beforeDeleteAll' ) ; $ this -> controller -> deleteAll ( $ this ) ; $ this -> hook ( 'afterDeleteAll' ) ; return $ this ; }
Deletes all records associated with this model.
Deletes all records associated with this model .