From 405ef44453699832c8a25c409d64d6338687fff1 Mon Sep 17 00:00:00 2001 From: bzboy Date: Fri, 11 Jul 2014 17:19:34 +0800 Subject: [PATCH] Update Model.class.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复开启事务时_master空对象错误 --- doitphp/core/Model.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doitphp/core/Model.class.php b/doitphp/core/Model.class.php index b2c461c..eb076f5 100644 --- a/doitphp/core/Model.class.php +++ b/doitphp/core/Model.class.php @@ -492,7 +492,7 @@ public function lastInsertId() { */ public function startTrans() { - return $this->_master->startTrans(); + return $this->_master()->startTrans(); } /** @@ -503,7 +503,7 @@ public function startTrans() { */ public function commit() { - return $this->_master->commit(); + return $this->_master()->commit(); } /** @@ -514,7 +514,7 @@ public function commit() { */ public function rollback() { - return $this->_master->rollback(); + return $this->_master()->rollback(); } /** @@ -1674,4 +1674,4 @@ public static function getInstance() { return self::$_instance; } -} \ No newline at end of file +}