Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix event argument order when dispatching collectionPreNear

  • Loading branch information...
commit afff46ecd65731fb7df97e5060e7a81a2d9ba1fa 1 parent 6637851
Koji Iwazaki authored jmikola committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Doctrine/MongoDB/Collection.php
2  lib/Doctrine/MongoDB/Collection.php
View
@@ -330,7 +330,7 @@ protected function doFindAndUpdate(array $query, array $newObj, array $options)
public function near(array $near, array $query = array(), array $options = array())
{
if ($this->eventManager->hasListeners(Events::preNear)) {
- $this->eventManager->dispatchEvent(Events::preNear, new NearEventArgs($this, $near, $query));
+ $this->eventManager->dispatchEvent(Events::preNear, new NearEventArgs($this, $query, $near));
}
$result = $this->doNear($near, $query, $options);
Please sign in to comment.
Something went wrong with that request. Please try again.