{"record":{"id":"5e29dd141bf17421","repo":"octobercms/october","slug":"backend-lang-relation-missing-model","errorCode":null,"errorMessage":"backend::lang.relation.missing_model","messagePattern":"backend::lang\\.relation\\.missing_model","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/RelationController.php","lineNumber":363,"sourceCode":"    {\n        if ($this->originalConfig === null) {\n            $this->originalConfig = $this->controller->relationGetConfig();\n        }\n\n        if ($field === null) {\n            $field = post(self::PARAM_FIELD);\n        }\n\n        $this->config = $this->originalConfig;\n        $this->model = $model;\n        $this->field = $field;\n\n        if (!$field) {\n            return;\n        }\n\n        if (!$this->model) {\n            throw new ApplicationException(Lang::get('backend::lang.relation.missing_model', [\n                'class' => get_class($this->controller),\n            ]));\n        }\n\n        if (!$this->model instanceof Model) {\n            throw new ApplicationException(Lang::get('backend::lang.model.invalid_class', [\n                'model' => get_class($this->model),\n                'class' => get_class($this->controller),\n            ]));\n        }\n\n        // Configuration details\n        if (!$this->relationHasField($field)) {\n            throw new ApplicationException(Lang::get('backend::lang.relation.missing_definition', compact('field')));\n        }\n\n        $this->applyExtraConfig($field);\n        $this->alias = camel_case('relation ' . HtmlHelper::nameToId($field));","sourceCodeStart":345,"sourceCodeEnd":381,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/RelationController.php#L345-L381","documentation":"Error \"backend::lang.relation.missing_model\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/RelationController.php:363 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":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}