MAPG-193 fix PersistentDataManager::selectMultipleFromDb
This commit is contained in:
parent
b58137acc9
commit
45869321ac
@ -27,8 +27,9 @@ class PersistentDataManager
|
|||||||
public function selectMultipleFromDb(Select $select, string $type, bool $withRelations = false): Generator
|
public function selectMultipleFromDb(Select $select, string $type, bool $withRelations = false): Generator
|
||||||
{
|
{
|
||||||
$select = $this->createSelect($select, $type, $withRelations);
|
$select = $this->createSelect($select, $type, $withRelations);
|
||||||
|
$result = $select->execute();
|
||||||
|
|
||||||
while ($data = $select->execute()->fetch(IResultSet::FETCH_ASSOC)) {
|
while ($data = $result->fetch(IResultSet::FETCH_ASSOC)) {
|
||||||
$model = new $type();
|
$model = new $type();
|
||||||
$this->fillWithData($data, $model);
|
$this->fillWithData($data, $model);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user