BugFix: getDocumentReferences byRef problem
BugFix: getDocumentReferences byRef problem

PHP handles '$parent_key' by reference so if you have two
or more arrays in your document the refs are not correct. A
simple assignment into a new variable will fix this.

crodas/ActiveMongo,crodas/ActiveMongo