diff --git a/Source/PMObjectID.m b/Source/PMObjectID.m index 15d4a25..fbaf751 100644 --- a/Source/PMObjectID.m +++ b/Source/PMObjectID.m @@ -84,7 +84,8 @@ - (id)initWithCoder:(PMKeyedArchiver*)aDecoder - (void)encodeWithCoder:(PMKeyedUnarchiver*)aCoder { - NSAssert(_temporaryID == NO, @"When encoding, the object ID cannot be temporal"); + if (_temporaryID) + NSLog(@"WARNING: storing an object ID for type <%@> with a temprorary ID.", _type); [aCoder encodeInteger:_dbID forKey:@"dbID"]; [aCoder encodeObject:_type forKey:@"type"];