Skip to content

Commit

Permalink
Fix: extractAutoIDs Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacarpet authored Sep 13, 2019
1 parent 2a7f757 commit 3ec66f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/GDS/Gateway/GRPCv1.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ protected function extractAutoIDs()
foreach($this->obj_last_response->getMutationResults() as $obj_list) {
$obj_key = $obj_list->getKey();
if ($obj_key !== null) {
$arr_key_path = $obj_key->getPath();
$arr_key_path = $this->convertRepeatedField(
$obj_key->getPath()
);
$obj_path_end = end($arr_key_path);
$arr_ids[] = $obj_path_end->getId();
}
Expand Down Expand Up @@ -452,4 +454,4 @@ protected function createMapper()
{
return (new \GDS\Mapper\GRPCv1())->setSchema($this->obj_schema)->setPartitionId($this->getPartitionId());
}
}
}

0 comments on commit 3ec66f6

Please sign in to comment.