Permalink
Browse files

fixed updating bug introduced by refactor

  • Loading branch information...
1 parent b42636f commit e1ba3d7521714a6b03fbb0b006e5b875d3c2f1f1 @dustin10 committed Oct 9, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 EventListener/GeographicalListener.php
@@ -5,6 +5,7 @@
use Vich\GeographicalBundle\Driver\AnnotationDriver;
use Vich\GeographicalBundle\QueryService\QueryServiceInterface;
use Vich\GeographicalBundle\Adapter\AdapterInterface;
+use Vich\GeographicalBundle\Annotation\Geographical;
use Doctrine\Common\EventArgs;
use Doctrine\Common\EventSubscriber;
@@ -132,7 +133,7 @@ protected function updateObject($obj, $geo, $geoQuery, $isUpdate = false, EventA
* @param Geographical $annot The Geographical annotation.
* @return boolean True if should query, false otherwise.
*/
- protected function shouldQueryOnUpdate(Geographical $annot)
+ protected function shouldQueryOnUpdate(Geographical $annot = null)
{
return (null !== $annot) && ($annot->getOn() === Geographical::ON_UPDATE);
}

0 comments on commit e1ba3d7

Please sign in to comment.