Closed danielbehrendt closed 1 year ago
Fixed by #6092.
Has this issue been reopened on purpose, @danharrin?
Yes apparently it didnt fix
I just downloaded the same repository again, I was pretty sure the issue was fixed last time I closed it but this was reported.
I see no issues with the behaviour. I have attached a screen recording.
@danielbehrendt please double check you're on the latest Filament version. Make sure no versions are locked in your composer.json. Run artisan about
to check the Filament version. If the issue persists, please create another reproduction in a fresh Laravel project because this one is not helping me.
Btw - I tested it with the latest 2.x branch. Potentially #6363 fixed the problem. So it's worth updating to the latest version of Filament before testing, it could be that 👍
It should work at filament 3? Im having the same problem with belongsTo nested relations
This issue still happen on version 3
We investigate open issues with reproduction repositories, if you open one we will look at it
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 nested relations only the first level gets saved.The nested structure is as followed:
-> user --> person ---> contact
All these relations are defined by
morphOne
relationships.Expected behavior
After saving the new model only
user
andperson
exist but the expected behavior would be the have auser
with aperson
and acontact
belonging to theperson
.In case of
edit
it works but not in case ofcreate
.Steps to reproduce
Download "Reproduction repository" and run
Edit .env file and the run
Login in to Filament admin and try to create e new user.
Reproduction repository
https://github.com/danielbehrendt/filament-test
Relevant log output
No response