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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user