Save nested relationship on create

I do have the following nested structure: -> user --> person ---> primaryEmail All these are defined by morphOne relationships. When I create a new user only the person gets saved but not the primaryEmail relationship. When I edit an existing user model everything is working properly. How can I get this working? This screenshot shows the nesting:
8 Replies
Dan Harrin
Dan Harrin2y ago
send the form code
Dan Harrin
Dan Harrin2y ago
potentially it's a bug then, please open an issue with a minimal reproduction repository
Daniel
DanielOP2y ago
phew, ok. including database / migrations?
Dan Harrin
Dan Harrin2y ago
yes, literally everything we need to set the project up and reproduce the problem without unnecessary form components that arent related to the problem
Daniel
DanielOP2y ago
done 🙂
Daniel
DanielOP2y ago
GitHub
Nested relationships not working on creation. · Issue #6039 · filam...
Package filament/filament Package Version v2.17.18 Laravel Version v10.4.1 Livewire Version No response PHP Version PHP 8.2.4 Problem description When trying to create a new model with 2 level nest...
Daniel
DanielOP2y ago
i guess i have to save everything manually in the meanwhile, right?
Want results from more Discord servers?
Add your server