add event on models to index in solr
authorclebeaupin
Mon, 29 Mar 2010 12:26:25 +0200
changeset 29 e873acff02e0
parent 27 ec2d5a70a75e
child 30 1b5c6294e805
add event on models to index in solr
web/thdProject/config/ProjectConfiguration.class.php
web/thdProject/lib/model/doctrine/ThdDoctrineListener.class.php
--- a/web/thdProject/config/ProjectConfiguration.class.php	Fri Mar 26 14:50:22 2010 +0100
+++ b/web/thdProject/config/ProjectConfiguration.class.php	Mon Mar 29 12:26:25 2010 +0200
@@ -16,4 +16,8 @@
 	{
 	  	$this->enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin'));
 	}
+
+  public function configureDoctrineConnection(Doctrine_Connection $conn) {
+    $conn->addRecordListener(new ThdDoctrineListener());
+  }
 }