RamboRoland
Repeater reordering violates unique constraint
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.
3 replies