/**
  * @return array|\Neoxygen\NeoClient\Formatter\Response|string
  *
  * @throws \Neoxygen\NeoClient\Exception\Neo4jException
  */
 public function rollback()
 {
     $this->checkIfOpened();
     $response = $this->handleResponse($this->client->rollBackTransaction($this->transactionId));
     $this->active = false;
     return $response;
 }
Ejemplo n.º 2
0
 /**
  * @return array|\Neoxygen\NeoClient\Formatter\Response|string
  *
  * @throws \Neoxygen\NeoClient\Exception\Neo4jException
  */
 public function rollback()
 {
     $this->checkIfOpened();
     if ($this->isAbove225Version()) {
         $this->active = false;
         return true;
     }
     try {
         $response = $this->handleResponse($this->client->rollBackTransaction($this->transactionId));
     } catch (HttpException $e) {
     }
     $this->active = false;
     return $response;
 }