phalcon/cphalcon · error · Phalcon\Mvc\Model\Exceptions\PropertyNotAccessible
Cannot access property '{property}' (not public) in '{classN
Error message
Cannot access property '{property}' (not public) in '{className}' What it means
Error "Cannot access property '{property}' (not public) in '{className}'" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model.zep:659
return null;
}
}
// Use possible setter.
if this->possibleSetter(property, value) {
return value;
}
/**
* Throw an exception if there is an attempt to set a non-public
* property.
*/
if property_exists(this, property) {
let manager = this->getModelsManager();
if unlikely !manager->isVisibleModelProperty(this, property) {
throw new PropertyNotAccessible(property, get_class(this));
}
}
let this->{property} = value;
return value;
}
/**
* Unserializes an array to the model
*/
public function __unserialize(array data) -> void
{
var container, manager, key, value, snapshot, properties, dirtyState;
if !isset data["attributes"] {
let data = [
"attributes": dataView on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model.zep:659 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/e6d44602343ff170.
Report an issue: GitHub.