Also add efficient count for Persistent collection
This commit is contained in:
parent
9b7dce1940
commit
0fa7b45a0e
1 changed files with 1 additions and 1 deletions
|
@ -884,6 +884,6 @@ final class PersistentCollection implements Collection, Selectable
|
||||||
|
|
||||||
$persister = $this->em->getUnitOfWork()->getEntityPersister($this->association['targetEntity']);
|
$persister = $this->em->getUnitOfWork()->getEntityPersister($this->association['targetEntity']);
|
||||||
|
|
||||||
return new ArrayCollection($persister->loadCriteria($criteria));
|
return new LazyCriteriaCollection($persister, $criteria);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue