BugFix: getDocumentReferences byRef problem
commitb2e7df723618415f0c422ee8147692df282025d4
authorDominik Fässler <d.faessler@ambf.ch>
Mon, 17 May 2010 15:03:24 +0000 (17 23:03 +0800)
committerCésar D. Rodas <crodas@php.net>
Thu, 20 May 2010 06:21:44 +0000 (20 14:21 +0800)
tree7ee16389fd7d5f251fa6d53b79694cbcca70c106
parentdabc6e995f662aee0d0a1a6dcbde9adf89a8c676
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.
lib/ActiveMongo.php