Skip to content

Instantly share code, notes, and snippets.

@DracoBlue
Created March 5, 2012 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DracoBlue/1978414 to your computer and use it in GitHub Desktop.
Save DracoBlue/1978414 to your computer and use it in GitHub Desktop.
Index: agavi/database/AgaviDoctrineDatabase.class.php
===================================================================
--- agavi/database/AgaviDoctrineDatabase.class.php (revision 759)
+++ agavi/database/AgaviDoctrineDatabase.class.php (working copy)
@@ -119,7 +119,7 @@
// set our event listener that, on connect, sets the configured charset and runs init queries
$cel = $this->getParameter('connection_event_listener_class', 'AgaviDoctrineDatabaseEventListener');
- $this->connection->setListener(new $cel($this));
+ $this->connection->addListener(new $cel($this));
// set the context instance as a connection parameter
$this->connection->setParam('context', $databaseManager->getContext(), 'org.agavi');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment