diff --git a/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php b/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php
index d7e39f3c..cdd27051 100644
--- a/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php
+++ b/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php
@@ -130,7 +130,7 @@ public static function createAnnotationMappingDriver(array $namespaces, array $d
*/
public static function createAttributeMappingDriver(array $namespaces, array $directories, array $managerParameters, $enabledParameter = false, array $aliasMap = [])
{
- $driver = new Definition(AttributeDriver::class, [$directories, new Reference('doctrine_mongodb.odm.metadata.attribute_reader')]);
+ $driver = new Definition(AttributeDriver::class, [$directories]);
return new DoctrineMongoDBMappingsPass($driver, $namespaces, $managerParameters, $enabledParameter, $aliasMap);
}
diff --git a/Resources/config/mongodb.xml b/Resources/config/mongodb.xml
index b3bb407e..44a496d8 100644
--- a/Resources/config/mongodb.xml
+++ b/Resources/config/mongodb.xml
@@ -33,7 +33,6 @@
Doctrine\Persistence\Mapping\Driver\MappingDriverChain
Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver
Doctrine\ODM\MongoDB\Mapping\Driver\AttributeDriver
- Doctrine\ODM\MongoDB\Mapping\Driver\AttributeReader
Doctrine\Bundle\MongoDBBundle\Mapping\Driver\XmlDriver
@@ -111,20 +110,11 @@
-
%doctrine_mongodb.odm.document_dirs%
-
- %doctrine_mongodb.odm.document_dirs%
-
-
-
-
- %doctrine_mongodb.odm.xml_mapping_dirs%
-