src/Classes/Bulk.php
public function commit()
    {

        if (empty($this->body)) {
            return false;
        }

        $result = $this->query->connection->bulk($this->body);
        $this->operationCount = 0;
        $this->body = [];

        return $result;
    }
public function commit()
    {

        if (empty($this->body)) {
            return false;
        }

        $result = $this->query->connection->bulk($this->body);
        $this->operationCount = 0;
        $this->body = [];

        return $result;
    }
public function commit ( ) { if ( empty ( $ this -> body ) ) { return false ; } $ result = $ this -> query -> connection -> bulk ( $ this -> body ) ; $ this -> operationCount = 0 ; $ this -> body = [ ] ; return $ result ; }
Commit all pending operations
Commit all pending operations