title: ios Restkit - Mapping objects with a list within another list
body: <p>I'm trying to map objects using Restkit. I have no problems mapping normal JSON responses. In this case i have a problem because I want to map a response with this configuration:</p>
  
  <pre><code>{
      "id": 161,
      "text": "usertest",
      "test": {
          "id": "1",
          "beginDate": "17/04/2013",
          "expectedDuration": "45 minutes",
          "finishDate": "17/04/2013",
          "groups": [
              {
                  "id": 71,
                  "text": "some text",
                  "number":"number"
              },
              {
                  "id": 81,
                  "text": "some anothertext
              }
          ]
          ...
  }
  </code></pre>
  
  <p>As you can see, I have a main object with three attributes(id, text and a list of tests). Each test has some attributes(id, beginDate,...,). Each test has also a list of groups. And here is my problem. When i try to map this, restkit can't map the 'groups' list.</p>
  
  <p>I'm mapping this with this code:</p>
  
  <pre><code>//### TEST
  RKEntityMapping *testCompleteMapping = [RKEntityMapping mappingForEntityForName:@"UserTest" inManagedObjectStore:managedObjectStore];
  [testCompleteMapping addAttributeMappingsFromDictionary:@{
   @"id":             @"usertestID",
   }];
  
  RKEntityMapping *usertest_TestMapping = [RKEntityMapping mappingForEntityForName:@"Test" inManagedObjectStore:managedObjectStore];
  [usertest_TestMapping addAttributeMappingsFromDictionary:@{
   @"id":             @"testID",
   @"beginDate":            @"beginDate",
   @"expectedDuration":@"expectedDuration",
   @"finishDate":         @"finishDate",
   }];
  
  RKRelationshipMapping* usertest_Test_Relationship = [RKRelationshipMapping relationshipMappingFromKeyPath:@"test" toKeyPath:@"test" withMapping:usertest_TestMapping];
  
  //### GROUPS
  
  RKEntityMapping *groupTestMapping = [RKEntityMapping mappingForEntityForName:@"QuestionGroup" inManagedObjectStore:managedObjectStore];
  [groupTestMapping addAttributeMappingsFromDictionary:@{
   @"id":             @"groupID",
   @"number":            @"number",
   @"text":@"text",
   }];
  
  RKRelationshipMapping* group_Test_Relationship = [RKRelationshipMapping relationshipMappingFromKeyPath:@"groups" toKeyPath:@"groups" withMapping:usertest_TestMapping];
  
  
  //### ADD PROPERTY MAPPINGS 
  
  RKResponseDescriptor *CompleteTestResponseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping:testCompleteMapping pathPattern:@"/api/module/demo2/lesson/Phasellus/test/71" keyPath:nil statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
  
  
  [testCompleteMapping addPropertyMappingsFromArray:[NSArray arrayWithObjects:usertest_Test_Relationship, nil]];
  [usertest_TestMapping addPropertyMapping:group_Test_Relationship];
  
  [objectManager addResponseDescriptor:CompleteTestResponseDescriptor];
  </code></pre>
  
  <p>I also tried to use "test.groups" instead of "groups" but it didn't work.</p>