© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
2 replies
chinwalprasad

Filament 3 Fieldset relationship not storing

I have a couple form fields wrapped in a Filament Fieldset like so.

Fieldset::make('Recommendation')
  ->visibleOn('edit')
  ->visible(fn () => auth()->user()->hasAnyRole('super_admin', 'recommender'))
  ->disabled(function ($record) {
      if(Some logic) {
        return false;
      }
  
      return true;
  })
  ->relationship('recommendation')
  ->schema(ApprovalStatusRelationManager::geRecommenderForm()),
Fieldset::make('Recommendation')
  ->visibleOn('edit')
  ->visible(fn () => auth()->user()->hasAnyRole('super_admin', 'recommender'))
  ->disabled(function ($record) {
      if(Some logic) {
        return false;
      }
  
      return true;
  })
  ->relationship('recommendation')
  ->schema(ApprovalStatusRelationManager::geRecommenderForm()),


The relationship recommendation is defined like so:

public function recommendation(): \Illuminate\Database\Eloquent\Relations\HasOne
{
    return $this->hasOne(Recommendation::class);
}
public function recommendation(): \Illuminate\Database\Eloquent\Relations\HasOne
{
    return $this->hasOne(Recommendation::class);
}


When I try to save the parent form which has the Fieldset I get the below error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'recommendation' in 'field list'.
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'recommendation' in 'field list'.

I believe the
->relationship('recommendation')
->relationship('recommendation')
is not called properly and it assumes that
recommendation
recommendation
is a column on the parent model. How can I fix this?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Not Loading Data from Fieldset->relationship()
FilamentFFilament / ❓┊help
2y ago
Nested Fieldset and relationship
FilamentFFilament / ❓┊help
3y ago
CheckboxList inside a Fieldset not saving relationship
FilamentFFilament / ❓┊help
13mo ago
Creating a belongsTo Relationship in a Filament Form: Is Fieldset::relationship() the Right Approach
FilamentFFilament / ❓┊help
5mo ago