public function fetch($connectionId)
    {
        $connectionId = (string) $connectionId;

        if ($this->exist($connectionId)) {
            return $this->connections[$connectionId];
        }

        throw new \DomainException("Requested database connection '{$connectionId}' does not exist.");
    }
public function fetch($connectionId)
    {
        $connectionId = (string) $connectionId;

        if ($this->exist($connectionId)) {
            return $this->connections[$connectionId];
        }

        throw new \DomainException("Requested database connection '{$connectionId}' does not exist.");
    }
public function fetch ( $ connectionId ) { $ connectionId = ( string ) $ connectionId ; if ( $ this -> exist ( $ connectionId ) ) { return $ this -> connections [ $ connectionId ] ; } throw new \ DomainException ( "Requested database connection '{$connectionId}' does not exist." ) ; }
Returns the database connection with provided identifier, or throws an exception if not found.

@param string $connectionId
@return Connection
@throws \DomainException
Returns the database connection with provided identifier or throws an exception if not found .