Repeater reordering violates unique constraint
Hi, I try to reorder my items and SQL throws violates unique constraint. When i clone a item it works but not when i reorder.
Filament: 3.0.86
My code:
1 Reply
When using Repeater with relationship it's not possible to apply unique on sort. Because all models are save individually. There will always be a item that already has the old sort value.
There is two different solutions:
1. remove unique on sort column
2. don't use relationship and use json instead. This works because all data i s saved at the same time.