{"record":{"id":"dd1138572cb62da4","repo":"filamentphp/filament","slug":"the-relationship-relationshipname-does-not-ex-dd1138","errorCode":null,"errorMessage":"The relationship [{$relationshipName}] does not exist on the model [{$this->getModel()}].","messagePattern":"The relationship \\[(.+?)\\] does not exist on the model \\[(.+?)\\]\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/forms/src/Components/Repeater.php","lineNumber":1183,"sourceCode":"    }\n\n    public function getOrderColumn(): ?string\n    {\n        return $this->evaluate($this->orderColumn);\n    }\n\n    public function getRelationship(): HasOneOrMany | BelongsToMany | null\n    {\n        if (! $this->hasRelationship()) {\n            return null;\n        }\n\n        $record = $this->getModelInstance();\n\n        $relationshipName = $this->getRelationshipName();\n\n        if ($record->hasAttribute($relationshipName) || (! $record->isRelation($relationshipName))) {\n            throw new LogicException(\"The relationship [{$relationshipName}] does not exist on the model [{$this->getModel()}].\");\n        }\n\n        return $this->getModelInstance()->{$relationshipName}();\n    }\n\n    public function getRelationshipName(): ?string\n    {\n        return $this->evaluate($this->relationship);\n    }\n\n    protected function modifyRelationshipRecords(Collection $records): Collection\n    {\n        return $this->evaluate(\n            $this->modifyRelationshipRecordsUsing,\n            namedInjections: [\n                'records' => $records,\n            ],\n            typedInjections: [","sourceCodeStart":1165,"sourceCodeEnd":1201,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/forms/src/Components/Repeater.php#L1165-L1201","documentation":"Error \"The relationship [{$relationshipName}] does not exist on the model [{$this->getModel()}].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/forms/src/Components/Repeater.php:1183 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":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}