title: Multi root with a GET request
body: <p>I am searching a way to map 2 different arrays with the following JSON</p>
  
  <pre><code>"establishments": [
      {
          "id": 1,
          "name": "Boudin Sourdough Bakery and Cafe",
          "address": "1 Stockton St",
          "zip_code": "94108",
          "city": "San Francisco",
          "country": "us",
          "phone_number": "",
          "position": {
              "latitude": 37.78590500000001,
              "longitude": -122.406289
          },
          "distance_from": 13.75783097391759
      }
  ],
  "places": [
      {
          "id": 3,
          "name": "Private Place",
          "position": {
              "latitude": 37.78583400000001,
              "longitude": -122.406417
          },
          "is_private": false,
          "distance_from": 0
      }
  ]
  </code></pre>
  
  <p>I have 2 different mappings. One for establishment and another for place. I found some help with the <a href="https://github.com/RestKit/RestKit/wiki/Object-Mapping#handling-multiple-root-objects-in-core-data-postput" rel="nofollow">documentation</a> but it's working only for PUT or POST requests. </p>
  
  <p>Currently, I have the following request</p>
  
  <pre><code>[session.objectManager getObjectsAtPathForRouteNamed:APICallSearchSearchPlaceRouteName object:nil parameters:params success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
      NSArray * resultPlaces=mappingResult.array;
  
      [delegate APICallDidSearch:resultPlaces];
  } failure:^(RKObjectRequestOperation *operation, NSError *error) {
      NSError* myError=[self catchCustomErrorInRKError:error setDomain:@"Search"];
      if (myError.code == NSURLErrorCancelled) return;
  
      [delegate APICallDidFailSearch:myError];
  }];
  </code></pre>
  
  <p>Mapping &amp; Mapping Descriptor</p>
  
  <pre><code>RKEntityMapping *establishmentMapping = [APICallEstablishment RKGetEstablishmentMappingForManagedObjectStore:self.appDelegate.managedObjectStore];
  RKResponseDescriptor *responseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping:establishmentMapping
                                                                                          method:RKRequestMethodGET
                                                                                     pathPattern:APICallSearchSearchPlacePattern
                                                                                         keyPath:@"establishments"
                                                                                     statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
  
  
  [session.objectManager addResponseDescriptor:responseDescriptor];
  </code></pre>
  
  <p>I tried to adapt the example to my case with that (just before my request written above)</p>
  
  <pre><code>RKManagedObjectRequestOperation *operation = [session.objectManager appropriateObjectRequestOperationWithObject:establishmentMapping method:RKRequestMethodGET path:@"/whatever" parameters:nil];
  operation.targetObject = nil;
  //Does it still exist ? (XCode says an error)
  //operation.targetObjectID = nil;
  [session.objectManager enqueueObjectRequestOperation:operation];
  </code></pre>
  
  <p>Thank you in advance for your help.</p>