Created
September 5, 2009 02:55
-
-
Save kriswallsmith/181271 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
<?php | |
// config/ProjectConfiguration.class.php | |
class ProjectConfiguration extends sfProjectConfiguration | |
{ | |
// ... | |
public function configureDoctrineConnection(Doctrine_Connection $conn) | |
{ | |
$listener = new ConnectionListener( | |
$this->getMasterConnection()->getDbh(), | |
$this->getSlaveConnection()->getDbh() | |
); | |
$conn->addListener($listener); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment