Method | Description | |
---|---|---|
fromLegacy ( mixed $value ) : mixed | Converts a legacy type to the new BSON type | |
isNumericArray ( array $array ) : boolean | Helper method to find out if an array has numerical indexes | |
toLegacy ( mixed $value ) : mixed | Converts a BSON type to the legacy types |
Method | Description | |
---|---|---|
convertBSONObjectToLegacy ( MongoDB\BSON\Type $value ) : mixed | Converter method to convert a BSON object to its legacy type | |
ensureCorrectType ( array $array, boolean $wasObject = false ) : array | MongoDB\Model\BSONArray | MongoDB\Model\BSONDocument | Converts all arrays with non-numeric keys to stdClass |
public static fromLegacy ( mixed $value ) : mixed | ||
$value | mixed | |
return | mixed |
public static isNumericArray ( array $array ) : boolean | ||
$array | array | |
return | boolean |