1
0
Fork 0
mirror of synced 2025-04-04 05:43:36 +03:00

#6003 inlined persister retrieval

This commit is contained in:
Marco Pivetta 2016-09-08 00:55:09 +02:00
parent e2cba87662
commit 36e9904082

View file

@ -207,9 +207,7 @@ class EntityRepository implements ObjectRepository, Selectable
*/
public function count(array $criteria)
{
$persister = $this->_em->getUnitOfWork()->getEntityPersister($this->_entityName);
return $persister->count($criteria);
return $this->_em->getUnitOfWork()->getEntityPersister($this->_entityName)->count($criteria);
}
/**