Skip to content

Kirby 3.5.7.1

$query->fetch()

Sets the object class, which should be fetched; set this to 'array' to get a simple array instead of an object; pass a function that receives the $data and the $key to generate arbitrary data structures

$query->fetch(string|\Closure $fetch): Kirby\Database\Query

Parameters

Name Type Default
$fetch * string|Closure

Return type

Kirby\Database\Query

Parent class

Kirby\Database\Query