phalcon/cphalcon · error · Phalcon\Mvc\Model\Query\Exceptions\InvalidResultsetClass
Resultset class '{className}' must be an implementation of P
Error message
Resultset class '{className}' must be an implementation of Phalcon\Mvc\Model\ResultsetInterface What it means
Error "Resultset class '{className}' must be an implementation of Phalcon\Mvc\Model\ResultsetInterface" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model/Query.zep:1444
}
}
/**
* Check if the model keeps snapshots
*/
let isKeepingSnapshots = (bool) manager->isKeepingSnapshots(resultObject);
}
if resultObject instanceof ModelInterface && method_exists(resultObject, "getResultsetClass") {
let resultsetClassName = (<ModelInterface> resultObject)->getResultsetClass();
if resultsetClassName {
if unlikely !class_exists(resultsetClassName) {
throw new ResultsetClassNotFound(resultsetClassName);
}
if unlikely !is_subclass_of(resultsetClassName, ResultsetInterface::class) {
throw new InvalidResultsetClass(resultsetClassName);
}
return create_instance_params(
resultsetClassName,
[
simpleColumnMap,
resultObject,
resultData,
cache,
isKeepingSnapshots
]
);
}
}
/**
* Simple resultsets contains only complete objects
*/View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model/Query.zep:1444 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/61a9d6ceec5976df.
Report an issue: GitHub.