ensureMongoId() protected method
Converts given value into \MongoDB\BSON\ObjectID instance.
If array given, each element of it will be processed.
protected array|\MongoDB\BSON\ObjectID ensureMongoId ( $rawId ) | ||
---|---|---|
$rawId | mixed |
Raw id(s). |
return | array|\MongoDB\BSON\ObjectID |
Normalized id(s). |
Please login to continue.