1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

DibiResult: row-class can be disabled and fetch() returns array

This commit is contained in:
David Grudl
2012-01-19 05:44:39 +01:00
parent 3cde2c7815
commit 5b68657842

View File

@@ -216,7 +216,10 @@ class DibiResult extends DibiObject implements IDataSource
}
$this->fetched = TRUE;
$this->normalize($row);
return new $this->rowClass($row);
if ($this->rowClass) {
$row = new $this->rowClass($row);
}
return $row;
}