$query->primaryKeyName()
Sets the name of the primary key column
$query->primaryKeyName(string $primaryKeyName): Kirby\Database\Query
Parameters
| Name | Type | Default |
|---|---|---|
| $primaryKeyName * | string |
– |
Return type
This method does not modify the existing $query object but returns a new object with the changes applied. Learn more →