Example demonstrating how to get a database reference and what the expected
input is.
<?php
$ref = array(
'$ref' => 'profiles',
'$id' => new MongoId('47cc67093475061e3d9536d2')
);
$profile = $db->getDBRef($ref);
?>
See MongoDB::createDBRef for more information about how to programatically create DB references.