{"record":{"id":"c3233d28741745fe","repo":"phalcon/cphalcon","slug":"invalid-key-in-array-data-provided-to-dumpresult","errorCode":null,"errorMessage":"Invalid key in array data provided to dumpResult() in '{className}'","messagePattern":"Invalid key in array data provided to dumpResult\\(\\) in '(.+?)'","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Exceptions\\InvalidDumpResultKey","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model.zep","lineNumber":1042,"sourceCode":"        /**\n         * Clone the base record\n         */\n        let instance = clone base;\n\n        /**\n         * Declared private properties must be written via reflection during\n         * hydration - see getPrivateProperties()\n         */\n        let privateProperties = self::getPrivateProperties(get_class(instance));\n\n        /**\n         * Mark the object as persistent\n         */\n        instance->setDirtyState(dirtyState);\n\n        for key, value in data {\n            if unlikely typeof key !== \"string\" {\n                throw new InvalidDumpResultKey(get_class(base));\n            }\n\n            if unlikely isset privateProperties[key] {\n                let reflectionProperty = privateProperties[key];\n                reflectionProperty->setValue(instance, value);\n            } else {\n                let instance->{key} = value;\n            }\n        }\n\n        /**\n         * Call afterFetch, this allows the developer to execute actions after a\n         * record is fetched from the database\n         */\n        (<ModelInterface> instance)->fireEvent(\"afterFetch\");\n\n        return instance;\n    }","sourceCodeStart":1024,"sourceCodeEnd":1060,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model.zep#L1024-L1060","documentation":"Error \"Invalid key in array data provided to dumpResult() in '{className}'\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model.zep:1042 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"}