Ver código fonte

Fix wrong class name for bson id

Andreas Braun 10 anos atrás
pai
commit
dbad3bdc7e
1 arquivos alterados com 1 adições e 1 exclusões
  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: