RelationManger `save` isn't working
Got an issue with one of the RelationManagers. The EditAction doesn't seem to save the data. I do get the notification for successfully saved, but don't see an UPDATE query in the logs. I am logging all the queries during save, but i only see SELECT queries being executed when clicking on the save button of the EditAction. Not sure why this is happening. Doesn't seem to happen on other RelationManagers
8 Replies
Was there any changs actually made? no update query will be run if no change was acutally made
Yes a change was made to the form.
@toeknee here is a screencast https://share.cleanshot.com/ktsvNVyX
If you refresh the table?
Is that field also fillable on the model?
yes
when I refresh the page, it still shows the same data before the update
Can you provide your edit action code?
Its the RelationManager and so have the
form()
method. And I added the following to the EditAction
and it always returns []
here is what the form()
method looks like
I am showing the field based on the content_type
column based on the row I am trying to edit
Pretty straight forward code, just not sure why the update isn't working, and still getting the notification. But no errors
Have the debug bar and when I look at the queries executed for each livewire request, don't see any update
queries but just selects
it feels like a SELECT
is being called before the update causing the data to reset
it doesn't cause the page to reload
@toeknee any other advice that I can do to debug and see what is the issue?So the edit icon, do you have that action code?
You are also setting the section_content as the state path though which seems wrong, when you set them all, so the last one will replace all the others?