protected function resetBinds($prefix = null)
    {
        if ($prefix === null) {
            $this->builder->setParameters([]);

            return;
        }

        $params = (array) $this->builder->getParameters();
        $types = (array) $this->builder->getParameterTypes();

        foreach (array_keys($params) as $key) {
            if (strpos($key, $prefix) === 1) {
                unset($params[$key], $types[$key]);
            }
        }

        $this->builder->setParameters($params, $types);
    }
protected function resetBinds($prefix = null)
    {
        if ($prefix === null) {
            $this->builder->setParameters([]);

            return;
        }

        $params = (array) $this->builder->getParameters();
        $types = (array) $this->builder->getParameterTypes();

        foreach (array_keys($params) as $key) {
            if (strpos($key, $prefix) === 1) {
                unset($params[$key], $types[$key]);
            }
        }

        $this->builder->setParameters($params, $types);
    }
protected function resetBinds ( $ prefix = null ) { if ( $ prefix === null ) { $ this -> builder -> setParameters ( [ ] ) ; return ; } $ params = ( array ) $ this -> builder -> getParameters ( ) ; $ types = ( array ) $ this -> builder -> getParameterTypes ( ) ; foreach ( array_keys ( $ params ) as $ key ) { if ( strpos ( $ key , $ prefix ) === 1 ) { unset ( $ params [ $ key ] , $ types [ $ key ] ) ; } } $ this -> builder -> setParameters ( $ params , $ types ) ; }
Removes bound values by their prefix
If prefix is null - clears all bound values

@param null|string $prefix
Removes bound values by their prefix If prefix is null - clears all bound values