@@ 320-325 (lines=6) @@ | ||
317 | if (!$hasUrl && $hasPayload) { |
|
318 | $bulkResult = $this->getWrapper()->createBulkResourceforResourceSet($targSet, $data); |
|
319 | assert(is_array($bulkResult)); |
|
320 | for ($i = 0; $i < $numEntries; $i++) { |
|
321 | $targEntityInstance = $bulkResult[$i]; |
|
322 | $this->getWrapper()->hookSingleModel($sourceSet, $source, $targSet, $targEntityInstance, $propName); |
|
323 | $key = $this->generateKeyDescriptor($targType, $targEntityInstance); |
|
324 | $link->expandedResult->entries[$i]->id = $key; |
|
325 | } |
|
326 | } |
|
327 | // update |
|
328 | if ($hasUrl && $hasPayload) { |
|
@@ 330-334 (lines=5) @@ | ||
327 | // update |
|
328 | if ($hasUrl && $hasPayload) { |
|
329 | $bulkResult = $this->getWrapper()->updateBulkResource($targSet, $targObj, $keys, $data); |
|
330 | for ($i = 0; $i < $numEntries; $i++) { |
|
331 | $targEntityInstance = $bulkResult[$i]; |
|
332 | $this->getWrapper()->hookSingleModel($sourceSet, $source, $targSet, $targEntityInstance, $propName); |
|
333 | $link->expandedResult->entries[$i]->id = $keys[$i]; |
|
334 | } |
|
335 | } |
|
336 | assert(isset($bulkResult) && is_array($bulkResult)); |
|
337 |