Skip to content
Open
Changes from all commits
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
3 changes: 1 addition & 2 deletions KeyValueObjectMapping/DCParserConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ - (id)instantiateObjectForClass:(Class)classOfObjectToGenerate withValues:(NSDic
- (DCArrayMapping *) arrayMapperForMapper: (DCObjectMapping *) mapper {
for(DCArrayMapping *arrayMapper in self.arrayMappers){
DCObjectMapping *mapping = arrayMapper.objectMapping;
BOOL sameKey = [mapping.keyReference isEqualToString:mapper.keyReference];
BOOL sameAttributeName = [mapping.attributeName isEqualToString:mapper.attributeName];
BOOL sameAttributeNameWithUnderscore = [[self addUnderScoreToPropertyName:mapping.attributeName] isEqualToString:mapper.attributeName];
if(sameKey && (sameAttributeName || sameAttributeNameWithUnderscore)){
if(sameAttributeName || sameAttributeNameWithUnderscore){
return arrayMapper;
}
}
Expand Down