@@ -32,6 +32,11 @@ document mapping metadata:
3232Introduction to Docblock Annotations
3333------------------------------------
3434
35+ .. note ::
36+
37+ To be able to use annotations, you will have to install an extra
38+ package called ``doctrine/annotations ``.
39+
3540You've probably used docblock annotations in some form already,
3641most likely to provide documentation metadata for a tool like
3742``PHPDocumentor `` (@author, @link, ...). Docblock annotations are a
@@ -44,12 +49,15 @@ chances of clashes with other docblock annotations, the Doctrine
4449docblock annotations feature an alternative syntax that is heavily
4550inspired by the Annotation syntax introduced in Java 5.
4651
47- The implementation of these enhanced docblock annotations is
48- located in the ``Doctrine\Common\Annotations `` namespace and
49- therefore part of the Common package. Doctrine docblock annotations
50- support namespaces and nested annotations among other things. The
51- Doctrine MongoDB ODM defines its own set of docblock annotations
52- for supplying object document mapping metadata.
52+ The implementation of these enhanced docblock annotations is located in
53+ the ``doctrine/annotations `` package, but in the
54+ ``Doctrine\Common\Annotations `` namespace for backwards compatibility
55+ reasons. Note that ``doctrine/annotations `` is not required by Doctrine
56+ MongoDB ODM, and you will need to require that package if you want to use
57+ annotations. Doctrine MongoDB ODM docblock annotations support namespaces and
58+ nested annotations among other things. The Doctrine MongoDB ODM defines its
59+ own set of docblock annotations for supplying object-relational mapping
60+ metadata.
5361
5462.. note ::
5563
0 commit comments