From 4726cf32f323c1a648831bcadb6e68283a33f47b Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 1 Feb 2013 22:24:09 +0100 Subject: [PATCH] Copy paste error commit() -> rollBack() --- framework/db/Transaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/db/Transaction.php b/framework/db/Transaction.php index f7c8f99..3e53c0c 100644 --- a/framework/db/Transaction.php +++ b/framework/db/Transaction.php @@ -98,7 +98,7 @@ class Transaction extends \yii\base\Object { if ($this->_active && $this->db && $this->db->isActive) { \Yii::trace('Rolling back transaction', __CLASS__); - $this->db->pdo->commit(); + $this->db->pdo->rollBack(); $this->_active = false; } else { throw new Exception('Failed to roll back transaction: transaction was inactive.');