1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Add method visibility

This commit is contained in:
Michaël Gallego 2014-02-13 23:26:23 +01:00 committed by Marco Pivetta
parent 8514ec7320
commit 6cb5097ea8

View File

@ -71,18 +71,18 @@ class LazyCriteriaCollection extends AbstractLazyCollection implements Selectabl
/**
* {@inheritDoc}
*/
protected function doInitialize()
public function matching(Criteria $criteria)
{
$elements = $this->entityPersister->loadCriteria($this->criteria);
$this->collection = new ArrayCollection($elements);
$this->initialize();
return $this->collection->matching($criteria);
}
/**
* {@inheritDoc}
*/
function matching(Criteria $criteria)
protected function doInitialize()
{
$this->initialize();
return $this->collection->matching($criteria);
$elements = $this->entityPersister->loadCriteria($this->criteria);
$this->collection = new ArrayCollection($elements);
}
}