Skip to content

Commit d0008ac

Browse files
committed
[cookbook][doctrine] Adding a bit more detail
1 parent 0f93bca commit d0008ac

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cookbook/doctrine/mongodb.rst

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

66-
Register ODM Annotations::
66+
Next, register the annotations library by adding the following to the autoloader
67+
(below the existing ``AnnotationRegistry::registerFile`` line)::
6768

6869
// app/autoload.php
69-
AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php');
70+
AnnotationRegistry::registerFile(
71+
__DIR__.'/../vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php'
72+
);
7073

7174
Finally, enable the new bundle in the kernel::
7275

@@ -81,8 +84,6 @@ Finally, enable the new bundle in the kernel::
8184
// ...
8285
}
8386

84-
85-
8687
Congratulations! You're ready to get to work.
8788

8889
Configuration

0 commit comments

Comments
 (0)