$query->fail()
Enables failing queries. If enabled queries will no longer fail silently but throw an exception
$query->fail(bool $fail = true): Kirby\Database\Query
Parameters
Name | Type | Default |
---|---|---|
$fail | bool |
true
|
Return type
This method modifies the existing $query
object it is applied to and returns it again.