Skip to content
Snippets Groups Projects
Commit 9882e6a0 authored by symac's avatar symac
Browse files

Fix an issue when trying to limit results to a specific set.

parent 190ed278
No related branches found
No related tags found
No related merge requests found
...@@ -622,8 +622,8 @@ class ResponseGenerator extends AbstractXmlGenerator ...@@ -622,8 +622,8 @@ class ResponseGenerator extends AbstractXmlGenerator
$entityManager = $this->serviceLocator->get('Omeka\EntityManager'); $entityManager = $this->serviceLocator->get('Omeka\EntityManager');
$itemRepository = $entityManager->getRepository('Omeka\Entity\Item'); $itemRepository = $entityManager->getRepository('Omeka\Entity\Item');
$qb = $itemRepository->createQueryBuilder('Item'); $qb = $itemRepository->createQueryBuilder('omeka_root');
$qb->select('Item'); $qb->select('omeka_root');
$query = new ArrayObject; $query = new ArrayObject;
...@@ -693,7 +693,7 @@ class ResponseGenerator extends AbstractXmlGenerator ...@@ -693,7 +693,7 @@ class ResponseGenerator extends AbstractXmlGenerator
$qb->setParameter('until_2', $until); $qb->setParameter('until_2', $until);
} }
$qb->groupBy('Item.id'); $qb->groupBy('omeka_root.id');
// This limit call will form the basis of the flow control // This limit call will form the basis of the flow control
$qb->setMaxResults($this->_listLimit); $qb->setMaxResults($this->_listLimit);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment