public function deleteAll()
    {
        $delete = $this->dsql();
        $delete->owner->beginTransaction();
        $this->hook('beforeDeleteAll', array($delete));
        $delete->delete();
        $this->hook('afterDeleteAll');
        $delete->owner->commit();
        $this->reset();

        return $this;
    }
public function deleteAll()
    {
        $delete = $this->dsql();
        $delete->owner->beginTransaction();
        $this->hook('beforeDeleteAll', array($delete));
        $delete->delete();
        $this->hook('afterDeleteAll');
        $delete->owner->commit();
        $this->reset();

        return $this;
    }
public function deleteAll ( ) { $ delete = $ this -> dsql ( ) ; $ delete -> owner -> beginTransaction ( ) ; $ this -> hook ( 'beforeDeleteAll' , array ( $ delete ) ) ; $ delete -> delete ( ) ; $ this -> hook ( 'afterDeleteAll' ) ; $ delete -> owner -> commit ( ) ; $ this -> reset ( ) ; return $ this ; }
Deletes all records matching this model. Use with caution.
Deletes all records matching this model . Use with caution .