Use attribute from `MorphOne` relationship in a SelectFilter

This is my filter:

Tables\Filters\SelectFilter::make('submission.status')
    ->options([
        'draft' => 'Draft',
        'published' => 'Published',
    ]),


It crashes with this error:

Filament\Forms\Components\Select::getRelationship(): Return value must be of type Illuminate\Database\Eloquent\Relations\BelongsTo|Illuminate\Database\Eloquent\Relations\BelongsToMany|Znck\Eloquent\Relations\BelongsToThrough|null, Illuminate\Database\Eloquent\Relations\MorphOne returned


Is there any workaround to allowing morphOne relationships? I don't see a reason why this in particular is excluded.
Was this page helpful?