コード例 #1
0
ファイル: Table.php プロジェクト: rajeshpillai/df-sqldb
 /**
  * {@inheritdoc}
  */
 protected function rollbackTransaction()
 {
     if (isset($this->transaction)) {
         $this->transaction->rollback();
     }
     return true;
 }
コード例 #2
0
ファイル: Connection.php プロジェクト: df-arif/df-core
 /**
  * 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;
 }