Skip to content

Commit

Permalink
Revert "Countable implementation for DocumentRepository"
Browse files Browse the repository at this point in the history
This reverts commit 76392d5 from #853.
  • Loading branch information
jmikola committed Apr 15, 2014
1 parent dedb73a commit feb4106
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 80 deletions.
16 changes: 1 addition & 15 deletions lib/Doctrine/ODM/MongoDB/DocumentRepository.php
Expand Up @@ -19,7 +19,6 @@

namespace Doctrine\ODM\MongoDB;

use Countable;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\Common\Collections\Selectable;
Expand All @@ -38,7 +37,7 @@
* @author Jonathan H. Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
class DocumentRepository implements Countable, ObjectRepository, Selectable
class DocumentRepository implements ObjectRepository, Selectable
{
/**
* @var string
Expand Down Expand Up @@ -92,19 +91,6 @@ public function clear()
{
$this->dm->clear($this->class->rootDocumentName);
}

/**
* Performs count query (query is prepopulated for this document name)
*
* @return int
*/
public function count()
{
return $this->createQueryBuilder()
->count()
->getQuery()
->execute();
}

/**
* Finds a document by its identifier
Expand Down

This file was deleted.

0 comments on commit feb4106

Please sign in to comment.