|
Collection::addAdd collection document Description
public mysql_xdevapi\CollectionAdd mysql_xdevapi\Collection::add(mixed
$document )Triggers the insertion of the given document(s) into the collection, and multiple variants of this method are supported. Options include:
Parameters
Return ValuesA CollectionAdd object. Use execute() to return a Result that can be used to query the number of affected items, the number warnings generated by the operation, or to fetch a list of generated IDs for the inserted documents. ExamplesExample #1 mysql_xdevapi\Collection::add example
The above example will output something similar to: Array ( [0] => 00005b6b53610000000000000056 [1] => 00005b6b53610000000000000057 ) Notes
|