. */ /** * 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 $this; } }