MongoCollection
PHP Manual

MongoCollection::save

(PECL mongo >=0.9.0)

MongoCollection::saveSaves an object to this collection

Описание

public boolean MongoCollection::save ( array $a )

If the object is from the database, update the existing database object, otherwise insert this object.

Список параметров

a

Array to save.

Возвращаемые значения

Returns if the object was saved.


MongoCollection
PHP Manual