--- 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