Skip to content

Commit

Permalink
doctrine#6003 inlined persister retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius authored and yvoyer committed Nov 21, 2016
1 parent 5ad4fc7 commit 327df84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Doctrine/ORM/EntityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,7 @@ public function findOneBy(array $criteria, array $orderBy = null)
*/
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);
}

/**
Expand Down

0 comments on commit 327df84

Please sign in to comment.