Skip to content

Kirby 5.0.4

$mysql->join()

Creates a join query

$mysql->join(string $type, string $table, string $on): array

Parameters

Name Type Default
$typerequired string no default value
$tablerequired string no default value
$onrequired string no default value

Return type

array

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

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException if an invalid join type is given

Parent class

Kirby\Database\Sql\Mysql inherited from Kirby\Database\Sql