1
0
mirror of synced 2025-03-26 18:03:49 +03:00

Also add efficient count for Persistent collection

This commit is contained in:
Michaël Gallego 2013-12-19 21:36:47 +01:00 committed by Marco Pivetta
parent 9b7dce1940
commit 0fa7b45a0e

View File

@ -884,6 +884,6 @@ final class PersistentCollection implements Collection, Selectable
$persister = $this->em->getUnitOfWork()->getEntityPersister($this->association['targetEntity']);
return new ArrayCollection($persister->loadCriteria($criteria));
return new LazyCriteriaCollection($persister, $criteria);
}
}