Replies: 1 comment 2 replies
-
add |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Form builder
Package Version
3.2.42
How can we help you?
So, I have a select field:
The idea is if the editor does not set a user I'm creating user and assigning the
user_id
inmutateFormDataBeforeCreate()
. It works, but since it also have a relationship assigned, Filament will first create the record with the belongsTo relationship, and after in$this->form->model($this->getRecord())->saveRelationships();
it re-saves the relationship, but setting the relation to null.Any suggestions to solve this or should this be considered a but report instead?
Beta Was this translation helpful? Give feedback.
All reactions