MongoDBRef
PHP Manual

MongoDBRef::create

(PECL mongo >= 0.9.0)

MongoDBRef::createCreates a new database reference

Description

public static array MongoDBRef::create ( string $ns , mixed $id )

Parameters

ns

Database and collection name.

id

The id of the object to link.

Return Values

Returns the reference.


MongoDBRef
PHP Manual