Create a gist now

Instantly share code, notes, and snippets.

Doctrine MasterSlaveConnection beginTransaction connects to master and then calls parent method which overwrites connection
<?php
class MasterSlaveConnection
{
public function beginTransaction()
{
$this->connect('master');
return parent::beginTransaction();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment