{"record":{"id":"5f5264d20d257f0a","repo":"phalcon/cphalcon","slug":"model-modelname-could-not-be-loaded","errorCode":null,"errorMessage":"Model '{modelName}' could not be loaded","messagePattern":"Model '(.+?)' could not be loaded","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Exceptions\\ModelCouldNotLoad","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/Manager.zep","lineNumber":2022,"sourceCode":"        let this->keepSnapshots[get_class_lower(model)] = keepSnapshots;\n    }\n\n    /**\n     * Loads a model throwing an exception if it does not exist\n     *\n     * @param string $modelName\n     *\n     * @return ModelInterface\n     */\n    public function load( string modelName) -> <ModelInterface>\n    {\n        var model;\n\n        /**\n         * The model does not exist throw an exception\n         */\n        if unlikely !class_exists(modelName) {\n            throw new ModelCouldNotLoad(modelName);\n        }\n\n        /**\n         * Load it using an autoloader\n         */\n        let model = create_instance_params(\n            modelName,\n            [\n                null,\n                this->container,\n                this\n            ]\n        );\n\n        return model;\n    }\n\n    /**","sourceCodeStart":2004,"sourceCodeEnd":2040,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/Manager.zep#L2004-L2040","documentation":"Error \"Model '{modelName}' could not be loaded\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model/Manager.zep:2022 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"}