Skip to content

Commit 0ff3b90

Browse files
Update form_collections.rst
1 parent 57c1b2e commit 0ff3b90

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

form/form_collections.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The example used in this article is a ``Task`` entity that relates to
1212
a ``Tag`` entitiy. The goal is to create a single form for tasks, that
1313
also allows to edit/create/remove many tags associated with that task.
1414

15-
Here's the ``Task`` entity::
15+
Here's the ``Task`` and the ``Tag`` entity::
1616

1717
// src/AppBundle/Entity/Task.php
1818
namespace AppBundle\Entity;
@@ -48,11 +48,9 @@ Here's the ``Task`` entity::
4848
.. note::
4949

5050
The ``ArrayCollection`` is specific to Doctrine and is basically the
51-
same as using an ``array`` (but it must be an ``ArrayCollection`` if
52-
you're using Doctrine).
51+
same as using an ``array``.
5352

54-
Now, create a ``Tag`` class. As you saw above, a ``Task`` can have many ``Tag``
55-
objects::
53+
.. code-block:: php
5654
5755
// src/AppBundle/Entity/Tag.php
5856
namespace AppBundle\Entity;

0 commit comments

Comments
 (0)