From 3dc598bc7c2604e24b9e0be1189d9d78b43737ea Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 17 Jan 2007 08:01:40 +0000 Subject: Add active record generator. --- framework/Data/TDbCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework/Data/TDbCommand.php') diff --git a/framework/Data/TDbCommand.php b/framework/Data/TDbCommand.php index 054aa653..5c824b8f 100644 --- a/framework/Data/TDbCommand.php +++ b/framework/Data/TDbCommand.php @@ -200,7 +200,9 @@ class TDbCommand extends TComponent protected function getDebugStatementText() { if(Prado::getApplication()->getMode() === TApplicationMode::Debug) - return $this->_statement instanceof PDOStatement ? $this->getConnection()->getPdoInstance().$this->_statement->queryString : $this->getText(); + return $this->_statement instanceof PDOStatement ? + $this->_statement->queryString + : $this->getText(); } /** -- cgit v1.2.3