class Illuminate / Database / Query / JoinClause
You are viewing an older version of the documentation. For the latest, please visit master documentation.

JoinClause

Extends

Properties

public

$type string

The type of join being performed.

Default: null
public

$table string

The table the join clause is joining to.

Default: null
protected

$parentConnection ConnectionInterface

The connection of the parent query builder.

Default: null
protected

$parentGrammar Grammar

The grammar of the parent query builder.

Default: null
protected

$parentProcessor Processor

The processor of the parent query builder.

Default: null
protected

$parentClass string

The class name of the parent query builder.

Default: null

Methods

public

__construct ( Builder $parentQuery , $type , $table ) : void

Create a new join clause instance.

Parameters

  • $parentQuery Builder
  • $type string
  • $table string
public

on ( $first , $operator , $second , $boolean ) : $this

Add an "on" clause to the join.

Parameters

public

orOn ( $first , $operator , $second ) : JoinClause

Add an "or on" clause to the join.

Parameters

public

newQuery ( ) : JoinClause

Get a new instance of the join clause builder.

protected

forSubQuery ( ) : Builder

Create a new query instance for sub-query.

protected

newParentQuery ( ) : Builder

Create a new parent query instance.