src/Soluble/Normalist/Synthetic/Transaction.php
public function commit()
    {
        try {
            $this->adapter->getDriver()->getConnection()->commit();
            $this->state = self::STATE_COMMITTED;
        } catch (\Exception $e) {
            $this->state = self::STATE_ERRORED;
            throw new Exception\TransactionException(__CLASS__ . '::' . __METHOD__ . ". cannot commit transaction '{$e->getMessage()}'.");
        }

        return $this;
    }
public function commit()
    {
        try {
            $this->adapter->getDriver()->getConnection()->commit();
            $this->state = self::STATE_COMMITTED;
        } catch (\Exception $e) {
            $this->state = self::STATE_ERRORED;
            throw new Exception\TransactionException(__CLASS__ . '::' . __METHOD__ . ". cannot commit transaction '{$e->getMessage()}'.");
        }

        return $this;
    }
Commit changes

@throws Exception\TransactionException
@return Transaction