diff --git a/lib/Doctrine/ORM/Cache/Persister/AbstractEntityPersister.php b/lib/Doctrine/ORM/Cache/Persister/AbstractEntityPersister.php index 7ed41c1ec..2f6ba34c8 100644 --- a/lib/Doctrine/ORM/Cache/Persister/AbstractEntityPersister.php +++ b/lib/Doctrine/ORM/Cache/Persister/AbstractEntityPersister.php @@ -156,6 +156,14 @@ abstract class AbstractEntityPersister implements CachedEntityPersister return $this->persister->getSelectSQL($criteria, $assoc, $lockMode, $limit, $offset, $orderBy); } + /** + * {@inheritDoc} + */ + public function getCountSQL($criteria = array()) + { + return $this->persister->count($criteria); + } + /** * {@inheritdoc} */ @@ -485,6 +493,14 @@ abstract class AbstractEntityPersister implements CachedEntityPersister return $entity; } + /** + * {@inheritDoc} + */ + public function count($criteria = array()) + { + return $this->persister->count($criteria); + } + /** * {@inheritdoc} */