Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Can't set model as property if it hasn't been persisted yet" after deleting a record. #114

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

chickgit
Copy link
Contributor

@chickgit chickgit commented Oct 5, 2023

I got error "Can't set model as property if it hasn't been persisted yet" when deleting a record. I'm trying to find the solution in discord but no response about this.

So in Livewire 3 it seems we must persist the property. this PR solve my issue.

Reference:
Livewire 3 : Can't set model as property if it hasn't been persisted yet
ModelSynth

@diegoldev
Copy link
Contributor

I can confirm that this PR solve the problem.
I had the same issue and adding this PR code was solved.
Thanks @chickgit !

@saade
Copy link
Owner

saade commented Oct 8, 2023

Thanks!

@saade saade merged commit 8a3babd into saade:3.x Oct 8, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants