Not Loading Data from Fieldset->relationship()

I have a Fieldset with hasOne relationship() and my form schema(), like here:

Select::make('metadata_id')
    ->relationship(name: 'metadata', titleAttribute: 'title')

Fieldset::make('Metadata')
    ->relationship('metadata')
    ->schema([
        TextInput::make('title'),
        Textarea::make('description'),
        FileUpload::make('image'),
    ])->disabled()


The form has ->disabled() because I only want it to show the data. I selected the correct one in the Select-field and saved the form. But after reloading the page it does not load the data.
Solution
I changed it to belongsTo relationship, now it works πŸ‘
Was this page helpful?