nuvolabase/orientdb — pull request #1314 by adaher (2013-01-28 16:38:16+00:00)
Title: Added embedded checks when building the ridMap

When the OFetchHelper builds the parsedRecords map, while fetching all nodes of a collection, the rid #-1:1 is added to the map as soon as it parses the first embedded object.

The next time it parses an embedded object, the method verifies if the rid (#-1:1 again) is already in the map, if it is, the fetchedLevel is set. Because of the incorrect fetchedLevel, the fetch doesn't return the entire tree.