|
MongoDB\Driver\WriteResult::getMatchedCountReturns the number of documents selected for update Beschreibung
final public int|null MongoDB\Driver\WriteResult::getMatchedCount
( void
)
If the update operation results in no change to the document (e.g. setting the value of a field to its current value), the matched count may be greater than the value returned by MongoDB\Driver\WriteResult::getModifiedCount. Parameter-ListeDiese Funktion hat keine Parameter. Rückgabewerte
Returns the number of documents selected for update, or Fehler/Exceptions
BeispieleBeispiel #1 MongoDB\Driver\WriteResult::getMatchedCount example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: int(1) Siehe auch
|