. */ /** * Doctrine_Db_Statement * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ class Doctrine_Db_Statement extends PDOStatement { protected $dbh; protected $querySequence; protected function __construct($dbh) { $this->dbh = $dbh; $this->querySequence = $this->dbh->getQuerySequence(); } public function getQuerySequence() { return $this->querySequence; } public function getQuery() { return $this->queryString; } public function execute(array $params) { $this->dbh->getListener()->onPreExecute($this, $params); $ret = parent::execute($params); $this->dbh->getListener()->onExecute($this, $params); return $this; } }