Skip to content

Commit

Permalink
Fixed problem with To-Many relations retrieved as a single object
Browse files Browse the repository at this point in the history
  • Loading branch information
angelolloqui committed Dec 11, 2012
1 parent 50ff1aa commit 75381fb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -154,7 +154,7 @@ - (void) MR_setRelationships:(NSDictionary *)relationships forKeysWithObject:(id
}
};

if ([relationshipInfo isToMany])
if ([relationshipInfo isToMany] && [relatedObjectData isKindOfClass:[NSArray class]])
{
for (id singleRelatedObjectData in relatedObjectData)
{
Expand Down

0 comments on commit 75381fb

Please sign in to comment.