diff --git a/lib/Doctrine/Manager.php b/lib/Doctrine/Manager.php index d081d39ff..d4fb46063 100644 --- a/lib/Doctrine/Manager.php +++ b/lib/Doctrine/Manager.php @@ -287,6 +287,15 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera return $this; } + /** + * getConnectionName + * + * @return string the name of the connection + */ + public function getConnectionName(Doctrine_Connection $conn) + { + return array_search($conn, $this->connections, true); + } /** * bindComponent * binds given component to given connection