/** * @param $query * @param array $parameters * * @return \Neoxygen\NeoClient\Formatter\Result * * @throws \Neoxygen\NeoClient\Exception\Neo4jException */ public function pushQuery($query, array $parameters = array()) { $this->checkIfOpened(); try { $response = $this->handleResponse($this->client->pushToTransaction($this->transactionId, $query, $parameters, $this->conn)); } catch (Neo4jException $e) { $this->version = $this->client->getNeo4jVersion(); $this->rollback(); throw $e; } catch (HttpException $e) { $this->rollback(); throw $e; } $result = $response->getResult(); $this->results[] = $result; return $result; }