phalcon/cphalcon · error · Phalcon\Mvc\Model\Exceptions\InvalidDumpResultKey
Invalid key in array data provided to dumpResult() in '{clas
Error message
Invalid key in array data provided to dumpResult() in '{className}' What it means
Error "Invalid key in array data provided to dumpResult() in '{className}'" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model.zep:1042
/**
* Clone the base record
*/
let instance = clone base;
/**
* Declared private properties must be written via reflection during
* hydration - see getPrivateProperties()
*/
let privateProperties = self::getPrivateProperties(get_class(instance));
/**
* Mark the object as persistent
*/
instance->setDirtyState(dirtyState);
for key, value in data {
if unlikely typeof key !== "string" {
throw new InvalidDumpResultKey(get_class(base));
}
if unlikely isset privateProperties[key] {
let reflectionProperty = privateProperties[key];
reflectionProperty->setValue(instance, value);
} else {
let instance->{key} = value;
}
}
/**
* Call afterFetch, this allows the developer to execute actions after a
* record is fetched from the database
*/
(<ModelInterface> instance)->fireEvent("afterFetch");
return instance;
}View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model.zep:1042 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/c3233d28741745fe.
Report an issue: GitHub.