public function resetParts(array $partNames = array())
    {
        if (empty($partNames)) {
            $partNames = array_keys($this->parts);
        }

        foreach ($partNames as $partName) {
            $this->resetPart($partName);
        }

        return $this;
    }
public function resetParts(array $partNames = array())
    {
        if (empty($partNames)) {
            $partNames = array_keys($this->parts);
        }

        foreach ($partNames as $partName) {
            $this->resetPart($partName);
        }

        return $this;
    }
public function resetParts ( array $ partNames = array ( ) ) { if ( empty ( $ partNames ) ) { $ partNames = array_keys ( $ this -> parts ) ; } foreach ( $ partNames as $ partName ) { $ this -> resetPart ( $ partName ) ; } return $ this ; }
Resets query parts.

@param array $partNames The query part names to reset.

@return \Fridge\DBAL\Query\QueryBuilder The query builder.
Resets query parts .