Skip to content

Commit

Permalink
Updates to JSON API Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
twalder-docnet committed Jun 18, 2015
1 parent 494c671 commit ed3d1cc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/GDS/Gateway/GoogleAPIClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,6 @@ public function deleteMulti(array $arr_entities)
/**
* Fetch some Entities, based on the supplied GQL and, optionally, parameters
*
* @todo FIXME, mapper
* @todo consume Schema
*
* @param $str_gql
* @param array $arr_params
* @return Entity[]
Expand All @@ -269,7 +266,9 @@ public function gql($str_gql, $arr_params = NULL)
if(NULL !== $arr_params) {
$this->addParamsToQuery($obj_query, $arr_params);
}
return $this->executeQuery($obj_query);
$arr_mapped_results = $this->createMapper()->mapFromResults($this->executeQuery($obj_query));
$this->obj_schema = NULL; // Consume Schema
return $arr_mapped_results;
}

/**
Expand Down

0 comments on commit ed3d1cc

Please sign in to comment.