MongoDBRef::get
Fetches the object pointed to by a reference
&mongo.noalternative.class.note;
The concept of database references, and hence this class, has been
deprecated.
&reftitle.description;
public static arrayMongoDBRef::get
MongoDBdb
arrayref
&reftitle.parameters;
db
Database to use.
ref
Reference to fetch.
&reftitle.returnvalues;
Returns the document to which the reference refers or &null; if the document
does not exist (the reference is broken).
&reftitle.examples;
MongoCollection::createDBRef example
findOne();
// dereference the address
$address = MongoDBRef::get($people->db, $person['address']);
?>
]]>
&reftitle.seealso;
MongoDB::getDBRef
MongoCollection::getDBRef