Repeater not saving pivot relationship
I've been searching the docs, the filament repo, and discord all day and have found people with similar issues, but none of the fixes are working. For some reason the repeater data just will not save.
The repeater is defined as:
using the pivot model UserEvent:
One thing I've noticed is that in the edit page, Repeater.php:1095 will run this query:
4 Replies
Why are you providing a model to the repeater, shouldn’t the relationship handle that.?
The form schema is also used in a modal from the saade/filament-fullcalendar plugin and the repeater in the modal gives a error without it.
Commenting it out still doesn't help with the saving issue in the regular edit and create pages for the resource though, so I don't think that's the issue.
Your repeater is not having a relationship, userEvents is not a relationship on your model right?
userEvents is a hasMany relationship on my model. The table also has a unique id.
I should also mention that when an entry in the pivot table is created manually, it does not display in the repeater in the edit page.
So the model function did end up being a pretty big part of it, which is a little weird because I thought I tested it out pretty thoroughly before. I'm just experiencing problems with the fullcalendar widget being unable to load the relationship for the create modal now.