Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #128
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Sep 2, 2013
2 parents 6afee47 + d13aab0 commit 97b70b4
Show file tree
Hide file tree
Showing 9 changed files with 1,160 additions and 359 deletions.
3 changes: 2 additions & 1 deletion lib/Doctrine/MongoDB/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function batchInsert(array &$a, array $options = array())
* @param array $query
* @param integer $limit
* @param integer $skip
* @return ArrayIterator
* @return integer
*/
public function count(array $query = array(), $limit = 0, $skip = 0)
{
Expand Down Expand Up @@ -1159,6 +1159,7 @@ protected function doNear($near, array $query, array $options)
$command = array();
$command['geoNear'] = $this->getMongoCollection()->getName();
$command['near'] = $near;
$command['spherical'] = isset($near['type']);
$command['query'] = (object) $query;
$command = array_merge($command, $options);

Expand Down
Loading

0 comments on commit 97b70b4

Please sign in to comment.