Issue #2443635 by mradcliffe, grom358: PostgreSQL: Fix config\Tests\ConfigEntityListTest

8.0.x
Alex Pott 2015-03-08 15:31:28 +00:00
parent dc1bc4a64b
commit fd350fb401
1 changed files with 3 additions and 1 deletions

View File

@ -86,14 +86,16 @@ class EntityListBuilder extends EntityHandlerBase implements EntityListBuilderIn
} }
/** /**
* Loads entity IDs using a pager. * Loads entity IDs using a pager sorted by the entity id.
* *
* @return array * @return array
* An array of entity IDs. * An array of entity IDs.
*/ */
protected function getEntityIds() { protected function getEntityIds() {
$query = $this->getStorage()->getQuery(); $query = $this->getStorage()->getQuery();
$keys = $this->entityType->getKeys();
return $query return $query
->sort($keys['id'])
->pager($this->limit) ->pager($this->limit)
->execute(); ->execute();
} }