UNIQUE constraint failed: ZTEMPORADA.Z_PK
I had a similar problem recently. I figured out that I was inserting an NSManagedObject
in an NSManagedObjectContext
twice and then trying to save it. I see you're calling twice temporada.salvar
in the same method, and since the saving is actually asynchronous, it might be causing trouble. Hope it helps.