So it turns out I was looking at the wrong thing. This code would have worked except the code prior to this wasn’t saving the relationship in the first place as createMany() doesn’t work with relations
So it turns out I was looking at the wrong thing. This code would have worked except the code prior to this wasn’t saving the relationship in the first place as createMany() doesn’t work with relations