-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Bug with BelongsToMany repeator on edit #122
Comments
it happens with MorphToSelect too. |
Make sure in your Custom Widget Class to include these 2 methods protected function getFormModel(): Model|string|null public function resolveEventRecord(array $data): Reservation |
Thank you very much. I have been trying to debug this issue for whole afternoon. ! |
Hello,
I tried to use Repeator with BelongsToMany relationship. The classes are "Event (object in calendar)" -> "Reservation" <- "User (student)".
If I use the same code in a classical FilamentPHP Edit page, my "Repeator" function looks fine. When I click on "Save" I've this issue :
Call to a member function reservations() on null
Docs :
https://filamentphp.com/docs/3.x/forms/fields/repeater
My getFormSchema() function :
Full classes : https://github.com/sheepbild/filament-viewcolumn-bug/tree/main/belongsToMany-repeater
The text was updated successfully, but these errors were encountered: