mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
DbObjectStore: sort by array index, not uuid
This commit is contained in:
parent
773a135220
commit
82fbd5359e
@ -64,7 +64,7 @@ class DbObjectStore
|
|||||||
{
|
{
|
||||||
$db = $this->connection->getDbAdapter();
|
$db = $this->connection->getDbAdapter();
|
||||||
$class = DbObjectTypeRegistry::classByType($tableName);
|
$class = DbObjectTypeRegistry::classByType($tableName);
|
||||||
$query = $db->select()->from($tableName)->order('uuid');
|
$query = $db->select()->from($tableName)->order($arrayIdx);
|
||||||
$result = [];
|
$result = [];
|
||||||
foreach ($db->fetchAll($query) as $row) {
|
foreach ($db->fetchAll($query) as $row) {
|
||||||
$result[$row->uuid] = $class::create((array) $row, $this->connection);
|
$result[$row->uuid] = $class::create((array) $row, $this->connection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user