We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b0c305 + 0e4688f commit e52a78dCopy full SHA for e52a78d
cookbook/doctrine/mongodb.rst
@@ -63,8 +63,13 @@ Be sure to add them anywhere *above* the ``Doctrine`` namespace (shown here)::
63
// ...
64
));
65
66
+Register ODM Annotations::
67
+
68
+ // app/autoload.php
69
+ AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php');
70
Finally, enable the new bundle in the kernel::
71
72
73
// app/AppKernel.php
74
public function registerBundles()
75
{
@@ -76,6 +81,8 @@ Finally, enable the new bundle in the kernel::
76
81
77
82
}
78
83
84
85
79
86
Congratulations! You're ready to get to work.
80
87
88
Configuration
0 commit comments