1
0
mirror of synced 2025-02-02 13:31:45 +03:00

#6001 adding orderBy, limit and offset variables (defined in master, not in 2.5)

This commit is contained in:
Marco Pivetta 2016-09-08 14:01:56 +02:00
parent 5e702ad524
commit 3e57c46afd

View File

@ -513,6 +513,9 @@ abstract class AbstractEntityPersister implements CachedEntityPersister
*/
public function loadCriteria(Criteria $criteria)
{
$orderBy = $criteria->getOrderings();
$limit = $criteria->getMaxResults();
$offset = $criteria->getFirstResult();
$query = $this->persister->getSelectSQL($criteria);
$hash = $this->getHash($query, $criteria, $orderBy, $limit, $offset);
$rsm = $this->getResultSetMapping();