original_string: protected function createTransaction()
      {
          if ($this->transactions === 0) {
              try {
                  $this->getPdo()->beginTransaction();
              } catch (Exception $e) {
                  $this->handleBeginTransactionException($e);
              }
          } elseif ($this->transactions >= 1 && $this->queryGrammar->supportsSavepoints()) {
              $this->createSavepoint();
          }
      }
code: protected function createTransaction()
      {
          if ($this->transactions === 0) {
              try {
                  $this->getPdo()->beginTransaction();
              } catch (Exception $e) {
                  $this->handleBeginTransactionException($e);
              }
          } elseif ($this->transactions >= 1 && $this->queryGrammar->supportsSavepoints()) {
              $this->createSavepoint();
          }
      }
code_tokens: protected function createTransaction ( ) { if ( $ this -> transactions === 0 ) { try { $ this -> getPdo ( ) -> beginTransaction ( ) ; } catch ( Exception $ e ) { $ this -> handleBeginTransactionException ( $ e ) ; } } elseif ( $ this -> transactions >= 1 && $ this -> queryGrammar -> supportsSavepoints ( ) ) { $ this -> createSavepoint ( ) ; } }
docstring: Create a transaction within the database.
  
  @return void
docstring_tokens: Create a transaction within the database .