1
0
mirror of synced 2025-01-19 06:51:40 +03:00
This commit is contained in:
zYne 2007-02-06 20:49:28 +00:00
parent 66e65570b4
commit 4ff6164651

View File

@ -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