# HG changeset patch # User ymh # Date 1271241611 -7200 # Node ID a2b6a65ec55350c2d717a8dcfe829472d53d0c72 # Parent a63a8ff719ff87b489cffb05adc77fe5aa41bc8c Correct $mySubject by $this diff -r a63a8ff719ff -r a2b6a65ec553 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