protected function compileUpdateJoinWheres(Builder $query)
    {
        $joinWheres = [];

        // Here we will just loop through all of the join constraints and compile them
        // all out then implode them. This should give us "where" like syntax after
        // everything has been built and then we will join it to the real wheres.
        foreach ($query->joins as $join) {
            foreach ($join->wheres as $where) {
                $method = "where{$where['type']}";

                $joinWheres[] = $where['boolean'] . ' ' . $this->{$method}($query, $where);
            }
        }

        return implode(' ', $joinWheres);
    }
protected function compileUpdateJoinWheres(Builder $query)
    {
        $joinWheres = [];

        // Here we will just loop through all of the join constraints and compile them
        // all out then implode them. This should give us "where" like syntax after
        // everything has been built and then we will join it to the real wheres.
        foreach ($query->joins as $join) {
            foreach ($join->wheres as $where) {
                $method = "where{$where['type']}";

                $joinWheres[] = $where['boolean'] . ' ' . $this->{$method}($query, $where);
            }
        }

        return implode(' ', $joinWheres);
    }
protected function compileUpdateJoinWheres ( Builder $ query ) { $ joinWheres = [ ] ; // Here we will just loop through all of the join constraints and compile them // all out then implode them. This should give us "where" like syntax after // everything has been built and then we will join it to the real wheres. foreach ( $ query -> joins as $ join ) { foreach ( $ join -> wheres as $ where ) { $ method = "where{$where['type']}" ; $ joinWheres [ ] = $ where [ 'boolean' ] . ' ' . $ this -> { $ method } ( $ query , $ where ) ; } } return implode ( ' ' , $ joinWheres ) ; }
Compile the "join" clause where clauses for an update.

@param \Mellivora\Database\Query\Builder $query

@return string
Compile the join clause where clauses for an update .