此example显示了一个简单的插入内容:
.
...但是使用最新的PHP驱动程序,如果我在集合名称(collection.attribute
)中有$collection = (new MongoDB\Client)->collection.attribute->users;
,则会收到错误,例如:
Check failed: shape[i] <= 2147483647 / count_ (31 vs. 20) blob size exceeds INT_MAX
答案 0 :(得分:0)
这有效:
$collection = (new MongoDB\Client)->{'collection.attribute'}->users;