Library/Bullhorn/FastRest/Api/Services/Database/Transaction.php
public function getTransaction() {
        if(!$this->isInTransaction()) {
            throw new \Exception('This transaction has already been rolled back, or committed, or has not began yet');
        }
        $transactions = $this->getTransactions();
        return $transactions[$this->getDbService()];
    }
public function getTransaction() {
        if(!$this->isInTransaction()) {
            throw new \Exception('This transaction has already been rolled back, or committed, or has not began yet');
        }
        $transactions = $this->getTransactions();
        return $transactions[$this->getDbService()];
    }
public function getTransaction ( ) { if ( ! $ this -> isInTransaction ( ) ) { throw new \ Exception ( 'This transaction has already been rolled back, or committed, or has not began yet' ) ; } $ transactions = $ this -> getTransactions ( ) ; return $ transactions [ $ this -> getDbService ( ) ] ; }
Gets the current transaction, throws an exception if there isn't one
@return TransactionInterface
@throws \Exception
Gets the current transaction throws an exception if there isn t one