浏览代码

Fix wrong class name for bson id

Andreas Braun 10 年之前
父节点
当前提交
dbad3bdc7e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Alcaeus/MongoDbAdapter/TypeConverter.php

+ 1 - 1
lib/Alcaeus/MongoDbAdapter/TypeConverter.php

@@ -47,7 +47,7 @@ class TypeConverter
     public static function convertToLegacyType($value)
     {
         switch (true) {
-            case $value instanceof \MongoDB\Driver\ObjectID:
+            case $value instanceof \MongoDB\BSON\ObjectID:
                 return new \MongoId($value);
 
             default: