Skip to content

Kirby 6.0.0

$query->table()

Sets the name of the table, which should be queried

$query->table(string $table): Query

Parameters

Name Type Default
$tablerequired string no default value

Return type

Kirby\Database\Query

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

Exceptions

Type Description
InvalidArgumentException if the table does not exist

Parent class

Kirby\Database\Query