Skip to content
Browse files

Added configuration entries for MongoDB DocumentManager support

  • Loading branch information...
1 parent 97f5533 commit 083b20c64dffa444d76d6bad6672ef1f314e7d70 @holtkamp holtkamp committed Apr 8, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 application/configs/application.ini
View
15 application/configs/application.ini
@@ -129,6 +129,21 @@ resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.annotati
resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.annotationReaderCache = default
;resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.annotationReaderNamespaces.App = "Application\DoctrineExtensions\ORM\Mapping"
+; DocumentManager configuration for "default" manager
+resources.doctrine.odm.documentManagers.default.documentManagerClass = "Doctrine\ODM\MongoDB\DocumentManager"
+resources.doctrine.odm.documentManagers.default.connectionString = "mongodb://localhost"
+resources.doctrine.odm.documentManagers.default.type = "MongoDB"
+resources.doctrine.odm.documentManagers.default.proxy.autoGenerateClasses = true
+resources.doctrine.odm.documentManagers.default.proxy.namespace = "DocumentProxy"
+resources.doctrine.odm.documentManagers.default.proxy.dir = APPLICATION_PATH "/data/doctrineDocumentProxies/Proxy"
+resources.doctrine.odm.documentManagers.default.hydrator.dir = APPLICATION_PATH "/data/hydrator"
+resources.doctrine.odm.documentManagers.default.hydrator.namespace = "Hydrators"
+resources.doctrine.odm.documentManagers.default.metadataDrivers.annotationRegistry.annotationFiles[] = "Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php"
+resources.doctrine.odm.documentManagers.default.metadataDrivers.drivers.0.adapterClass = "Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver"
+resources.doctrine.odm.documentManagers.default.metadataDrivers.drivers.0.mappingNamespace = "Application\Document"
+resources.doctrine.odm.documentManagers.default.metadataDrivers.drivers.0.mappingDirs[] = APPLICATION_PATH "/../library/Application/Entity"
+resources.doctrine.odm.documentManagers.default.metadataDrivers.drivers.0.annotationReaderClass = "Doctrine\Common\Annotations\AnnotationReader"
+resources.doctrine.odm.documentManagers.default.metadataDrivers.drivers.0.annotationReaderCache = "annotationCacheODM"
[staging : production]

0 comments on commit 083b20c

Please sign in to comment.
Something went wrong with that request. Please try again.