MongoDBRef
MongoDBRef::get
MongoDBRef
PHP Manual

# MongoDBRef::create

(PECL mongo >= 0.9.0)

MongoDBRef::create — Creates a new database reference

### Descrição

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

### Parâmetros

`ns`

  Database and collection name.

`id`

  The id of the object to link.

### Valor Retornado

Returns the reference.

### Veja Também

- MongoDB::createDBRef - Creates a database reference
- MongoCollection::createDBRef - Creates a database reference

MongoDBRef
MongoDBRef::get
MongoDBRef
PHP Manual