Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to merge policy #80

Merged
merged 5 commits into from
Jun 26, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding some more documentation
  • Loading branch information
Conrad Stoll committed Jun 26, 2014
commit f5942cfbb32a8b267e54b8349ba8e1cb58147853
4 changes: 4 additions & 0 deletions Source/MMRecord/MMRecordMarshaler.m
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ + (void)mergeDuplicateRecordResponseObjectDictionary:(NSDictionary *)dictionary
protoRecord.dictionary = dictionary;
}
}

if ([dictionary.allKeys count] != [protoRecord.dictionary.allKeys count]) {

}
}


Expand Down
6 changes: 6 additions & 0 deletions Source/MMRecord/MMRecordProtoRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
each unique record in the response object. The proto record is not responsible for that, but it is
an important consideration for a user of this class to consider. This class is responsible for
populating records with their given dictionary, as well as establishing relationships to it's record.

Note: when the value representing a relationship is a single string or number that MMRecord will
convert that string or number into a dictionary with that value, and they primary key identified
for that targetted relationship's entity. That means that the representation of a proto record
will always be in the form of a dictionary, even if the response object form is a string or a
number.
*/

@interface MMRecordProtoRecord : NSObject
Expand Down