Allow non-root Serializable to encode as BSON array

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.0.0-alpha1
    • Affects Version/s: 0.6.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Per the serialization spec:

      • Root documents must be serialized as a BSON document.
      • MongoDB\BSON\Persistable objects must be serialized as a BSON document.
      • If bsonSerialize returns a packed array, serialize as a BSON array.
      • If bsonSerialize returns a non-packed array or stdClass, serialize as a BSON document.
      • If bsonSerialize did not return an array or stdClass, throw an MongoDB\Driver\Exception\UnexpectedValueException exception.

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: