Created
March 5, 2012 13:57
-
-
Save DracoBlue/1978414 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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