Allow duplicates?
Hello everione, first day with filament.
I want to archive something, i have two models Member and Memberships, with a BelongsToMany relation, it works fine, but i want to add multiple instances of the same Membership to a Member, but when i want to attach another membership it dosent show, anyone can help me, i follow the allow multiple documentation but seems like i do it wrong. thanks
4 Replies
How does your code look? Have you added id field on the pivot table? and allowsDuplicates?
Hi, thanks for answer, yes i added to the RelationManager
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1159601903789953134/Screenshot_2023-10-05_at_2.19.56_p.m..png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1159601904075149403/Screenshot_2023-10-05_at_2.23.45_p.m..png)
Solution![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1160325764919595160/Screenshot_2023-10-07_at_2.19.40_p.m..png)
i just did somehting like this
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1160325764919595160/Screenshot_2023-10-07_at_2.19.40_p.m..png)
works fine now