/** * Get the connection instance for the specified component * * @param string $componentName * @return Doctrine_Connection */ public function getConnectionForComponent($componentName) { Doctrine_Core::modelsAutoload($componentName); if (isset($this->_bound[$componentName])) { return $this->getConnection($this->_bound[$componentName]); } return $this->getCurrentConnection(); }