Skip to content

Commit e52a78d

Browse files
committed
Merge pull request #531 from AlexKa/patch-1
Starting with symfony2 RC4 Annotations for the ORM have to be registered
2 parents 9b0c305 + 0e4688f commit e52a78d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbook/doctrine/mongodb.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,13 @@ Be sure to add them anywhere *above* the ``Doctrine`` namespace (shown here)::
6363
// ...
6464
));
6565

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');
6670
Finally, enable the new bundle in the kernel::
6771

72+
6873
// app/AppKernel.php
6974
public function registerBundles()
7075
{
@@ -76,6 +81,8 @@ Finally, enable the new bundle in the kernel::
7681
// ...
7782
}
7883

84+
85+
7986
Congratulations! You're ready to get to work.
8087

8188
Configuration

0 commit comments

Comments
 (0)