public function success() { $this->assertNotClosed(); $this->assertStarted(); try { $this->session->commitTransaction($this->transactionId); } catch (Neo4jException $e) { if ($e->effect() === Neo4jExceptionInterface::EFFECT_ROLLBACK) { $this->state = self::ROLLED_BACK; } throw $e; } $this->state = self::COMMITED; $this->closed = true; $this->session->transaction = null; }
/** * {@inheritdoc} */ public function run() { return $this->session->flush($this); }