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
send the form code
potentially it's a bug then, please open an issue with a minimal reproduction repository
phew, ok. including database / migrations?
yes, literally everything we need to set the project up and reproduce the problem
without unnecessary form components that arent related to the problem
done 🙂
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...
i guess i have to save everything manually in the meanwhile, right?