-
-
Notifications
You must be signed in to change notification settings - Fork 32
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]: using same relationship only last saved #123
Comments
Could you provide a demo repo? |
Not at this time, I need to create it. My repo is not public. |
If you could make something similar so i can test it that would be great! |
I think that problem is in line 119 on filament-select-tree > src > SelectTree.php when sync is called on relationship, previous relationships are removed, but I think is a problem from laravel that no respect where clause on relationship on sync call. |
For now I solved it overwriting saveRelationshipsUsing function, and detach and attach values. Working but now a clean solution.
|
What happened?
If you use two SelectTree with same relationship but a diferent modifyQueyUsing when save only last SelectTree is saved
How to reproduce the bug
And on Client Model relationship
Package Version
3.1
PHP Version
8.2
Laravel Version
11.9
Which operating systems does with happen with?
Linux
Notes
No response
The text was updated successfully, but these errors were encountered: