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