Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add note about need for doctrine/common #378

Merged
merged 1 commit into from

3 participants

@weierophinney
  • Added a note about the need for doctrine/common when using form annotations.
  • Updated .gitignore to ignore vim swap and undo files
@weierophinney weierophinney 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
25460fa
@robertbasic robertbasic commented on the diff
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

No need for double namespace separators here. (and on the next line.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@Freeaqingme Freeaqingme merged commit 25460fa into zendframework:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 9, 2012
  1. @weierophinney

    Add note about need for doctrine/common

    weierophinney authored
    - Added a note about the need for doctrine/common when using form annotations.
    - Updated .gitignore to ignore vim swap and undo files
This page is out of date. Refresh to see the latest.
Showing with 20 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +17 −0 docs/languages/en/modules/zend.form.quick-start.rst
View
4 .gitignore
@@ -5,4 +5,6 @@ nbproject
.settings/
tmp/
.DS_Store
-composer.lock
+composer.lock
+.*.sw*
+.*.un~
View
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

No need for double namespace separators here. (and on the next line.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ 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
+ <http://www.doctrine-project.org/projects/common.html>`_ for more details on
+ installation.
+
Here's a simple example.
.. code-block:: php
Something went wrong with that request. Please try again.