Correct $mySubject by $this
authorymh <ymh.work@gmail.com>
Wed, 14 Apr 2010 12:40:11 +0200
changeset 42 a2b6a65ec553
parent 41 a63a8ff719ff
child 43 6b682e0e01dc
Correct $mySubject by $this
web/thdProject/lib/model/doctrine/ThdDoctrineListener.class.php
--- a/web/thdProject/lib/model/doctrine/ThdDoctrineListener.class.php	Fri Apr 09 18:18:55 2010 +0200
+++ b/web/thdProject/lib/model/doctrine/ThdDoctrineListener.class.php	Wed Apr 14 12:40:11 2010 +0200
@@ -8,7 +8,7 @@
     if (method_exists($obj, 'getSolrDocumentFields'))
     {
         $dispatcher = sfContext::getInstance()->getEventDispatcher();
-		$dispatcher->notify(new sfEvent($mySubject, 'uvmc_solr.add_document', array('object' => $obj, 'commit' => true)));
+		$dispatcher->notify(new sfEvent($this, 'uvmc_solr.add_document', array('object' => $obj, 'commit' => true)));
     }
     
     // Index in solr
@@ -21,7 +21,7 @@
     if (method_exists($obj, 'getSolrDocumentFields'))
     {
         $dispatcher = sfContext::getInstance()->getEventDispatcher();
-		$dispatcher->notify(new sfEvent($mySubject, 'uvmc_solr.update_document', array('object' => $obj, 'commit' => true)));
+		$dispatcher->notify(new sfEvent($this, 'uvmc_solr.update_document', array('object' => $obj, 'commit' => true)));
     }
     
     // Reindex in solr
@@ -33,7 +33,7 @@
   		if (method_exists($obj, 'getSolrDocumentFields'))
     	{
         	$dispatcher = sfContext::getInstance()->getEventDispatcher();
-			$dispatcher->notify(new sfEvent($mySubject, 'uvmc_solr.delete_document', array('object' => $obj, 'commit' => true)));
+			$dispatcher->notify(new sfEvent($this, 'uvmc_solr.delete_document', array('object' => $obj, 'commit' => true)));
    	 	} 		
   }
 }
\ No newline at end of file