Skip to content

add MongoDB::Collection::get_collection method #52

merged 1 commit into from May 21, 2013

2 participants

sanbeg commented Dec 12, 2012

It appears that MongoDB::Collection::AUTOLOAD was deprecated, but no new functionality was implemented to replace it, instead just giving a misleading error message.

This patch adds the missing method and corrects the error message.

friedo commented Dec 13, 2012

Is there a reason why you can't use the get_collection method in the Database object? It's always available via $coll->_database -- maybe it would make more sense to make that a public attribute? Then you can say $coll->database->get_collection(), which makes more sense, I think.

@friedo friedo merged commit d3d34e3 into mongodb:master May 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.