Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add note about need for doctrine/common

- Added a note about the need for doctrine/common when using form annotations.
- Updated .gitignore to ignore vim swap and undo files
  • Loading branch information...
commit 25460fa40efcb34e64be12c86fbfdd456b34a6c4 1 parent 0a61bb2
@weierophinney weierophinney authored
Showing with 20 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +17 −0 docs/languages/en/modules/zend.form.quick-start.rst
4 .gitignore
@@ -5,4 +5,6 @@ nbproject
17 docs/languages/en/modules/zend.form.quick-start.rst
@@ -917,6 +917,23 @@ To use annotations, you simply include them in your class and/or property docblo
resolved according to the import statements in your class; as such, you can make them as long or as short as you
want depending on what you import.
+.. note::
+ Form annotations require ``Doctrine\\Common``, which contains an annotation
+ parsering engine. The simplest way to install ``Doctrine\\Common`` is if you
+ are using ``Composer``; simply update your ``composer.json`` and add the
+ following line to the ``require`` section:
+ .. code-block:: javascript
+ "doctrine/common": ">=2.1",
+ Then run ``php composer.phar update`` to install the dependency.
+ If you're not using ``Composer``, visit `the Doctrine project website
+ <>`_ for more details on
+ installation.
Here's a simple example.
.. code-block:: php
Please sign in to comment.
Something went wrong with that request. Please try again.