MongoDBRef::createCreates a new database reference Description
public static array MongoDBRef::create
( string
$collection
, mixed $id
[, string $database
] )If no database is given, the current database is used. Parameters
Return ValuesReturns the reference. ExamplesExample #1 MongoDBRef::create example This creates a database reference to a document in the addresses collection. The MongoCollection::getName function returns the name of the collection (not including the database name).
<?php See Also
|