F
Filament14mo ago
josef

Disabled relationship field is added to inserted valued on create

I have a form with multiple relationship fields that is by default disabled on create. When saving, I get a 500 error, because the query to create the model record includes the relationship field (obviously without a valid value), but that field does not exist in the database as it is a relationship. Anyone ever encounter this or know how to fix?
1 Reply
josef
josefOP14mo ago
It does seem that it only occurs for one of the relationships though, not sure why. It's a MorphToMany on the model.
Want results from more Discord servers?
Add your server