public function newQuery($skipOrdering = false)
    {
        $this->query = $this->getNew()->newQuery();

        // Apply order by
        if ($skipOrdering === false && $this->skipOrderingOnce === false) {
            foreach ($this->getOrderBy() as $column => $dir) {
                $this->query->orderBy($column, $dir);
            }
        }

        // Reset the one time skip
        $this->skipOrderingOnce = false;

        $this->applyScope();

        return $this;
    }
public function newQuery($skipOrdering = false)
    {
        $this->query = $this->getNew()->newQuery();

        // Apply order by
        if ($skipOrdering === false && $this->skipOrderingOnce === false) {
            foreach ($this->getOrderBy() as $column => $dir) {
                $this->query->orderBy($column, $dir);
            }
        }

        // Reset the one time skip
        $this->skipOrderingOnce = false;

        $this->applyScope();

        return $this;
    }
public function newQuery ( $ skipOrdering = false ) { $ this -> query = $ this -> getNew ( ) -> newQuery ( ) ; // Apply order by if ( $ skipOrdering === false && $ this -> skipOrderingOnce === false ) { foreach ( $ this -> getOrderBy ( ) as $ column => $ dir ) { $ this -> query -> orderBy ( $ column , $ dir ) ; } } // Reset the one time skip $ this -> skipOrderingOnce = false ; $ this -> applyScope ( ) ; return $ this ; }
Get a new query builder instance with the applied
the order by and scopes.

@param bool $skipOrdering

@return self
Get a new query builder instance with the applied the order by and scopes .