Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add note about need for doctrine/common #378

Merged
merged 1 commit into from

3 participants

Matthew Weier O'Phinney Robert Basic Dolf Schimmel
Matthew Weier O'Phinney
  • Added a note about the need for doctrine/common when using form annotations.
  • Updated .gitignore to ignore vim swap and undo files
Matthew Weier O'Phinney 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
Robert Basic 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
Dolf Schimmel Freeaqingme merged commit 25460fa into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 9, 2012
  1. Matthew Weier O'Phinney

    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
4 .gitignore
View
@@ -5,4 +5,6 @@ nbproject
.settings/
tmp/
.DS_Store
-composer.lock
+composer.lock
+.*.sw*
+.*.un~
17 docs/languages/en/modules/zend.form.quick-start.rst
View
@@ -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.