I have the same problem as the person in this issue:
In the issue, author said he will handle it on his side, but I am clueless how can you handle this situation.
My code is somthing like this:
const r = new Rating() r.projectMonth().associate(projectMonth) r.projectRating().associate(projectRating) r.standup().associate(standup) await r.save()
But this fails with
Duplicate entry '691' for key 'PRIMARY'
Because it tries to save it multiple times, I guess. It is correctly saved in the database, but still throws this error.