Core Data 1 to many, overwriting first array element

I am writing a 66 data elements(scores) into an array associated with one data element(match). The other properties of the match are stored and retrieved correctly. Writing of the scores is resulting in only the last score being stores, so there is only one score element and it has the values associated with the last one stored. context is saved each time values for the score are updated, and no errors are thrown. But when reading back, there is just one - score, not 66 for each match.

Answered by skcureton in 710973022

Found I was saving a let- variable, therefore never changing.

Accepted Answer

Found I was saving a let- variable, therefore never changing.

Core Data 1 to many, overwriting first array element
 
 
Q