{"record":{"id":"e6d44602343ff170","repo":"phalcon/cphalcon","slug":"cannot-access-property-property-not-public-i","errorCode":null,"errorMessage":"Cannot access property '{property}' (not public) in '{className}'","messagePattern":"Cannot access property '(.+?)' \\(not public\\) in '(.+?)'","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Exceptions\\PropertyNotAccessible","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model.zep","lineNumber":659,"sourceCode":"\n                return null;\n            }\n        }\n\n        // Use possible setter.\n        if this->possibleSetter(property, value) {\n            return value;\n        }\n\n        /**\n         * Throw an exception if there is an attempt to set a non-public\n         * property.\n         */\n        if property_exists(this, property) {\n            let manager = this->getModelsManager();\n\n            if unlikely !manager->isVisibleModelProperty(this, property) {\n                throw new PropertyNotAccessible(property, get_class(this));\n            }\n        }\n\n        let this->{property} = value;\n\n        return value;\n    }\n\n    /**\n     * Unserializes an array to the model\n     */\n    public function __unserialize(array data) -> void\n    {\n        var container, manager, key, value, snapshot, properties, dirtyState;\n\n        if !isset data[\"attributes\"] {\n            let data = [\n                \"attributes\": data","sourceCodeStart":641,"sourceCodeEnd":677,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model.zep#L641-L677","documentation":"Error \"Cannot access property '{property}' (not public) in '{className}'\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model.zep:659 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}