Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
removing assert and showing a log in object ID coding
Browse files Browse the repository at this point in the history
  • Loading branch information
vilanovi committed Oct 3, 2016
1 parent 4e14568 commit 5c9c688
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/PMObjectID.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit 5c9c688

Please sign in to comment.