tdmartin102 / ajrdatabase

An OpenSource implementation of Apple's Objective-C Enterprise Objects framework
22 stars 9 forks source link

GloabalID on insert not handled correctly #4

Closed tdmartin102 closed 12 years ago

tdmartin102 commented 12 years ago

On an insert EOTempoaryGlobalID is supposed to be replaced with a NON temporary Global ID. This does not happen really and because of that an EO CAN be inserted multiple times. The Apple implementation swaps the temp id for a permanent one then fires a notification so that anything that might care about the event can update the global id pointer. There may be an easier solution. For instance isTemporary could return NO. but of couse if it was done in this way comparing the id class would be an incorrect way of determining it if is temporary or not.

I am thinking the easiest way of dealing with this is to use isTemporary and not REALLY change the global id.

tdmartin102 commented 12 years ago

This is what I did, and I can find no ill effects. I am thinking this issue is closed