Skip to content

Kirby 3.7.5

$query->join()

Adds a new join clause to the query

$query->join(string $table, string $on, string $type = 'JOIN'): Kirby\Database\Query

Parameters

Name Type Default Description
$table * string Name of the table, which should be joined
$on * string The on clause for this join
$type string 'JOIN' The join type. Uses an inner join by default

Return type

Kirby\Database\Query

This method modifies the existing $query object it is applied to and returns it again.

Parent class

Kirby\Database\Query