MongoDB\BSON\Document::fromBSON

(mongodb >=1.16.0)

MongoDB\BSON\Document::fromBSONConstruit une nouvelle instance de document depuis une chaine de charactère BSON

Description

final static public MongoDB\BSON\Document::fromBSON(string $bson): MongoDB\BSON\Document

Liste de paramètres

bson (string)

Une chaîne de caractères contenant un document au format BSON.

Erreurs / Exceptions

  • Lance une exception MongoDB\Driver\InvalidArgumentException lors d'une erreur survenue pendant l'analyse d'un argument.
  • Lance une MongoDB\Driver\Exception\UnexpectedValueException si bson est une chaîne de caractères invalide ou contenant plus d'un seul document

Voir aussi

add a note

User Contributed Notes

There are no user contributed notes for this page.