mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 22:56:35 +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->fetched = TRUE;
|
||||||
$this->normalize($row);
|
$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