Commit 4ff61646 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 66e65570
......@@ -235,7 +235,18 @@ class Doctrine_Db_Statement implements Doctrine_Adapter_Statement_Interface
$cursorOrientation = Doctrine::FETCH_ORI_NEXT,
$cursorOffset = null)
{
return $this->stmt->fetch($fetchStyle, $cursorOrientation, $cursorOffset);
$event = new Doctrine_Db_Event($this, Doctrine_Db_Event::FETCHALL, $this->stmt->queryString,
array($fetchStyle, $cursorOrientation, $cursorOffset));
$data = $this->adapter->getListener()->onPreFetch($event);
if ($data === null) {
$data = $this->stmt->fetch($fetchStyle, $cursorOrientation, $cursorOffset);
}
$this->adapter->getListener()->onFetch($event);
return $data;
}
/**
* fetchAll
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment