public final function removeAll($whereParams): int
    {
        $whereParams = [$whereParams];
        if ($whereParams[0] === null || $whereParams[0] === '') {
            throw new InvalidValueException('You need to pass a parameter for delete action!');
        }

        $return = $this->db->getLink()->getAgent()
            ->deleteAll($this->table, "{$this->tablePrimary} IN(?)", $whereParams);

        if (method_exists($this, 'onRemove')) {
            $this->onRemove($return);
        }

        return $return;
    }
public final function removeAll($whereParams): int
    {
        $whereParams = [$whereParams];
        if ($whereParams[0] === null || $whereParams[0] === '') {
            throw new InvalidValueException('You need to pass a parameter for delete action!');
        }

        $return = $this->db->getLink()->getAgent()
            ->deleteAll($this->table, "{$this->tablePrimary} IN(?)", $whereParams);

        if (method_exists($this, 'onRemove')) {
            $this->onRemove($return);
        }

        return $return;
    }
public final function removeAll ( $ whereParams ) : int { $ whereParams = [ $ whereParams ] ; if ( $ whereParams [ 0 ] === null || $ whereParams [ 0 ] === '' ) { throw new InvalidValueException ( 'You need to pass a parameter for delete action!' ) ; } $ return = $ this -> db -> getLink ( ) -> getAgent ( ) -> deleteAll ( $ this -> table , "{$this->tablePrimary} IN(?)" , $ whereParams ) ; if ( method_exists ( $ this , 'onRemove' ) ) { $ this -> onRemove ( $ return ) ; } return $ return ; }
Remove all.
@param  any $whereParams
@return int
@throws Oppa\Exception\InvalidValueException
Remove all .