|
@@ -447,7 +447,7 @@ discard block |
|
|
block discarded – undo |
|
447
|
447
|
* @link http://www.php.net/manual/en/mongocollection.createindex.php |
|
448
|
448
|
* @param array $keys Field or fields to use as index. |
|
449
|
449
|
* @param array $options [optional] This parameter is an associative array of the form array("optionname" => <boolean>, ...). |
|
450
|
|
- * @return array Returns the database response. |
|
|
450
|
+ * @return string|false Returns the database response. |
|
451
|
451
|
* |
|
452
|
452
|
* @todo This method does not yet return the correct result |
|
453
|
453
|
*/ |
|
@@ -547,7 +547,7 @@ discard block |
|
|
block discarded – undo |
|
547
|
547
|
* @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error. |
|
548
|
548
|
* @throws MongoCursorException if the "w" option is set and the write fails. |
|
549
|
549
|
* @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds. |
|
550
|
|
- * @return array|boolean If w was set, returns an array containing the status of the save. |
|
|
550
|
+ * @return MongoDB\UpdateResult If w was set, returns an array containing the status of the save. |
|
551
|
551
|
* Otherwise, returns a boolean representing if the array was not empty (an empty array will not be inserted). |
|
552
|
552
|
*/ |
|
553
|
553
|
public function save($a, array $options = []) |
Please login to merge, or discard this patch.