Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function rollbackTransaction()
 {
     if (isset($this->transaction)) {
         $this->transaction->rollback();
     }
     return true;
 }
Ejemplo n.º 2
0
 /**
  * Returns the currently active transaction.
  *
  * @return Transaction the currently active transaction. Null if no active transaction.
  */
 public function getCurrentTransaction()
 {
     if ($this->transaction !== null) {
         if ($this->transaction->getActive()) {
             return $this->transaction;
         }
     }
     return null;
 }