public static function beginTransaction()
    {
        if (static::inTransaction()) {
            throw new PDOException();
        }

        static::inTransaction(true);

        $transaction = static::makeTransaction(static::countTransactions());

        static::addTransaction($transaction);
    }
public static function beginTransaction()
    {
        if (static::inTransaction()) {
            throw new PDOException();
        }

        static::inTransaction(true);

        $transaction = static::makeTransaction(static::countTransactions());

        static::addTransaction($transaction);
    }
public static function beginTransaction ( ) { if ( static :: inTransaction ( ) ) { throw new PDOException ( ) ; } static :: inTransaction ( true ) ; $ transaction = static :: makeTransaction ( static :: countTransactions ( ) ) ; static :: addTransaction ( $ transaction ) ; }
Places Wye into transaction mode and increments number of transactions.
If a transaction is already open, throws a PDOException

@todo Flesh out the details for the PDOException properly

@throws PDOException

@return void
Places Wye into transaction mode and increments number of transactions . If a transaction is already open throws a PDOException