Permalink
Browse files

Query::getSingleResult() should not take options

This should have been cleaned up in 2892cd9
  • Loading branch information...
1 parent d734f2e commit b381ff34ef9e751e8131e81a06c12f840ef3c2d6 @jmikola jmikola committed Aug 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/MongoDB/Query/Query.php
@@ -265,9 +265,9 @@ public function count($all = false)
*
* @return object $document The single document.
*/
- public function getSingleResult(array $options = array())
+ public function getSingleResult()
{
- return $this->getIterator($options)->getSingleResult();
+ return $this->getIterator()->getSingleResult();
}
/**

0 comments on commit b381ff3

Please sign in to comment.