function savepointStart() { if (!$this->transactionManager->inTransaction) { throw new TransactionException("To create a savepoint you must be in transaction"); } if (!$this->adapter->savepointStart('s' . $this->transactionManager->savepoints++)) { throw new BeforeTransactionException("Failed to create savepoint"); } }