phalcon/cphalcon · error · Phalcon\Paginator\Exceptions\MissingRequiredParameter
Parameter 'cursorColumn' is required
Error message
Parameter 'cursorColumn' is required
What it means
Constructor guard: the config array passed to QueryBuilderCursor lacks the 'cursorColumn' key, which names the unique ordered column used as the cursor value. Cursor-based pagination cannot resume without knowing which column to seek past.
Solutions
- Add 'cursorColumn' => '<column>' to the config array, naming the unique, sortable column (typically the primary key)
- Ensure the key spelling is exactly 'cursorColumn' (camelCase), not 'cursor_column' or 'cursorcolumn'
- Confirm the config array is not being built conditionally in a way that omits the key
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at phalcon/Paginator/Adapter/QueryBuilderCursor.zep:110 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21).
Data as JSON: /api/errors/f3dc9091fe562513.
Report an issue: GitHub.
Appendix: source
Thrown at phalcon/Paginator/Adapter/QueryBuilderCursor.zep:110
*/
public function __construct(array config)
{
var builder, cursorColumn, cursor;
if unlikely !isset config["limit"] {
throw new MissingRequiredParameter("limit");
}
if unlikely !fetch builder, config["builder"] {
throw new MissingRequiredParameter("builder");
}
if unlikely !(builder instanceof Builder) {
throw new InvalidBuilderInstance();
}
if unlikely !fetch cursorColumn, config["cursorColumn"] {
throw new MissingRequiredParameter("cursorColumn");
}
if unlikely typeof cursorColumn != "string" || empty cursorColumn {
throw new InvalidCursorColumn();
}
let this->cursorColumn = cursorColumn;
if fetch cursor, config["cursor"] {
let this->cursor = cursor;
}
parent::__construct(config);
this->setQueryBuilder(builder);
}
/**View on GitHub (pinned to b7419de9cd)