From 6ca06a6a35a182007fe5138b6ec65f1c9b627e86 Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 24 Sep 2006 19:55:35 +0000 Subject: [PATCH] added missing class: Doctrine_DB_Statement --- Doctrine/DB/Statement.php | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Doctrine/DB/Statement.php diff --git a/Doctrine/DB/Statement.php b/Doctrine/DB/Statement.php new file mode 100644 index 000000000..670479da1 --- /dev/null +++ b/Doctrine/DB/Statement.php @@ -0,0 +1,44 @@ +. + */ +/** + * Doctrine_DB_Statement + * + * @author Konsta Vesterinen + * @license LGPL + * @package Doctrine + */ +class Doctrine_DB_Statement extends PDOStatement { + protected $dbh; + + protected function __construct($dbh) { + $this->dbh = $dbh; + } + + public function execute($params) { + $this->dbh->getListener()->onPreExecute($this, $params); + + $ret = parent::execute($params); + + $this->dbh->getListener()->onExecute($this, $params); + + return $ret; + } +}