{"record":{"id":"a5b8d086e9c1585d","repo":"filamentphp/filament","slug":"the-relationship-relationshipname-does-not-ex-a5b8d0","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/TableSelect.php","lineNumber":369,"sourceCode":"        foreach (explode('.', $relationshipName) as $nestedRelationshipName) {\n            if ($record->hasAttribute($nestedRelationshipName)) {\n                $relationship = null;\n\n                break;\n            }\n\n            if (! $record->isRelation($nestedRelationshipName)) {\n                $relationship = null;\n\n                break;\n            }\n\n            $relationship = $record->{$nestedRelationshipName}();\n            $record = $relationship->getRelated();\n        }\n\n        if (! $relationship) {\n            throw new LogicException(\"The relationship [{$relationshipName}] does not exist on the model [{$this->getModel()}].\");\n        }\n\n        return $relationship;\n    }\n\n    public function getRelationshipName(): ?string\n    {\n        return $this->evaluate($this->relationship);\n    }\n\n    public function hasRelationship(): bool\n    {\n        return filled($this->getRelationshipName());\n    }\n\n    public function getLabel(): string | Htmlable | null\n    {\n        if ($this->label === null && $this->hasRelationship()) {","sourceCodeStart":351,"sourceCodeEnd":387,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/forms/src/Components/TableSelect.php#L351-L387","documentation":"Error \"The relationship [{$relationshipName}] does not exist on the model [{$this->getModel()}].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/forms/src/Components/TableSelect.php:369 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"}