UnionOfRAD/lithium — pull request #229 by tmaiaroto (2011-12-31 20:58:28+00:00)
Title: New method in lithium\data\collection class useful for debugging.

The _result property is a protected property in the Collection class.
This change simply adds a method to return that property, which is a resource or pointer.

When using MongoDB, this is the MongoCursor class. This is important to have access to, because from it, methods such as explain() and stats() can be called. Additionally, the native query can be obtained as well.

This comes in handy when you are trying to apply filters to log queries and debug.