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; + } +}