{"record":{"id":"e4f5a797b8efda0e","repo":"octobercms/october","slug":"backend-lang-model-not-found-e4f5a7","errorCode":null,"errorMessage":"backend::lang.model.not_found","messagePattern":"backend::lang\\.model\\.not_found","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/relationcontroller/HasPivotMode.php","lineNumber":67,"sourceCode":"            return null;\n        }\n\n        $config->model = $this->relationModel;\n        $config->arrayName = class_basename($this->relationModel);\n        $config->context = $this->evalFormContext('pivot', !!$this->manageId);\n        $config->alias = $this->alias . 'ManagePivotForm';\n\n        $foreignKeyName = $this->relationModel->getQualifiedKeyName();\n\n        // Incrementing pivot record\n        if ($this->pivotId && ($pivotKey = $this->isPivotIncrementing())) {\n            $this->pivotModel = $this->relationObject->wherePivot($pivotKey, $this->pivotId)->first();\n\n            if ($this->pivotModel) {\n                $config->model = $this->pivotModel;\n            }\n            else {\n                throw new ApplicationException(Lang::get('backend::lang.model.not_found', [\n                    'class' => get_class($this->relationObject->newPivot()),\n                    'id' => $this->pivotId,\n                ]));\n            }\n        }\n        // Existing record\n        elseif ($this->manageId) {\n            $this->pivotModel = $this->relationObject->where($foreignKeyName, $this->manageId)->first();\n\n            if ($this->pivotModel) {\n                $config->model = $this->pivotModel;\n            }\n            else {\n                throw new ApplicationException(Lang::get('backend::lang.model.not_found', [\n                    'class' => get_class($config->model),\n                    'id' => $this->manageId,\n                ]));\n            }","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/relationcontroller/HasPivotMode.php#L49-L85","documentation":"Error \"backend::lang.model.not_found\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/relationcontroller/HasPivotMode.php:67 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"}