original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Compile the "join" clause where clauses for an update.
  
  @param \Mellivora\Database\Query\Builder $query
  
  @return string
docstring_tokens: Compile the join clause where clauses for an update .