/** * Standard way to connect to db */ function doConnect() { parent::doConnect(); if ($this->getDBSlaveActive()) { $this->slave = MDB2::connect($this->getSlaveDSN(), array("use_transactions" => false)); } }