{"record":{"id":"9f7e04cceeb6a31f","repo":"octobercms/october","slug":"please-specify-the-modelclass-property-for-reorder","errorCode":null,"errorMessage":"Please specify the modelClass property for reordering","messagePattern":"Please specify the modelClass property for reordering","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/ReorderController.php","lineNumber":187,"sourceCode":"        $this->vars['reorderShowTree'] = $this->showTree;\n        $this->vars['reorderToolbarWidget'] = $this->toolbarWidget;\n    }\n\n    public function reorderRender()\n    {\n        return $this->reorderMakePartial('container');\n    }\n\n    public function reorderGetModel()\n    {\n        if ($this->model !== null) {\n            return $this->model;\n        }\n\n        $modelClass = $this->getConfig('modelClass');\n\n        if (!$modelClass) {\n            throw new ApplicationException('Please specify the modelClass property for reordering');\n        }\n\n        return $this->model = new $modelClass;\n    }\n\n    /**\n     * Returns the display name for a record.\n     * @return string\n     */\n    public function reorderGetRecordName($record)\n    {\n        return $record->{$this->nameFrom};\n    }\n\n    /**\n     * validateModel validates the supplied form model.\n     */\n    protected function validateModel()","sourceCodeStart":169,"sourceCodeEnd":205,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/ReorderController.php#L169-L205","documentation":"Error \"Please specify the modelClass property for reordering\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/ReorderController.php:187 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"}