Changeset 2399
- Timestamp:
- 03/12/2008 01:15:01 PM (10 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
HISTORY (modified) (1 diff)
-
framework/Data/TDbConnection.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/HISTORY
r2398 r2399 23 23 CHG: Active Record no longer automatically performs adding/removing/updating related objects (Qiang) 24 24 CHG: TJavaScript::encode() will encode data as a list if integer indices are detected (Qiang) 25 ENH: Ticket#722 - Add Read Only capabilities to TInPlaceTextBox (Christophe) 25 ENH: Ticket#722 - Added Read Only capabilities to TInPlaceTextBox (Christophe) 26 ENH: Ticket#741 - Added CDbConnection.currentTransaction property (Qiang) 26 27 ENH: Ticket#743 - Added status code header in HTTP response when in error (Qiang) 27 28 ENH: Ticket#783 - Added date/time type support to soap implementation (Hongliang) -
trunk/framework/Data/TDbConnection.php
r2386 r2399 86 86 private $_active=false; 87 87 private $_pdo=null; 88 private $_transaction; 88 89 89 90 /** … … 251 252 252 253 /** 254 * @return CDbTransaction the currently active transaction. Null if no active transaction. 255 */ 256 public function getCurrentTransaction() 257 { 258 if($this->_transaction!==null) 259 { 260 if($this->_transaction->getActive()) 261 return $this->_transaction; 262 } 263 return null; 264 } 265 266 /** 253 267 * Starts a transaction. 254 268 * @return TDbTransaction the transaction initiated … … 260 274 { 261 275 $this->_pdo->beginTransaction(); 262 return new TDbTransaction($this);276 return $this->_transaction=new TDbTransaction($this); 263 277 } 264 278 else
