Skip to content

Commit

Permalink
keep consistency with default doctrine repository
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Jun 5, 2018
1 parent 2bc684d commit 8833caf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -40,7 +40,7 @@ before_install:
- composer self-update --stable --no-progress

install:
- travis_retry composer require alcaeus/mongo-php-adapter $COMPOSER_GLOBAL_FLAGS $COMPOSER_FLAGS
- travis_retry pecl install -f mongodb-stable
- travis_retry composer update $COMPOSER_FLAGS --no-interaction --no-scripts --no-progress
- if [[ $TEST_VERSION ]]; then travis_retry composer require php-coveralls/php-coveralls $COMPOSER_FLAGS --no-interaction --no-scripts --no-progress ; fi

Expand Down
18 changes: 0 additions & 18 deletions src/MongoDBRepository.php
Expand Up @@ -13,7 +13,6 @@

namespace Jgut\Doctrine\Repository\MongoDB\ODM;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Util\ClassUtils;
use Doctrine\ODM\MongoDB\Cursor;
use Doctrine\ODM\MongoDB\DocumentManager;
Expand Down Expand Up @@ -54,23 +53,6 @@ public function getClassName(): string
return $this->className;
}

/**
* Finds documents by a set of criteria.
*
* @param array $criteria
* @param array $sort
* @param int|null $limit
* @param int|null $skip
*
* @return ArrayCollection
*
* @codeCoverageIgnore
*/
public function findBy(array $criteria, array $sort = null, $limit = null, $skip = null)
{
return new ArrayCollection(parent::findBy($criteria, $sort, $limit, $skip));
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 8833caf

Please sign in to comment.