File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The example used in this article is a ``Task`` entity that relates to
12
12
a ``Tag `` entitiy. The goal is to create a single form for tasks, that
13
13
also allows to edit/create/remove many tags associated with that task.
14
14
15
- Here's the ``Task `` entity::
15
+ Here's the ``Task `` and the `` Tag `` entity::
16
16
17
17
// src/AppBundle/Entity/Task.php
18
18
namespace AppBundle\Entity;
@@ -48,11 +48,9 @@ Here's the ``Task`` entity::
48
48
.. note ::
49
49
50
50
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 ``.
53
52
54
- Now, create a ``Tag `` class. As you saw above, a ``Task `` can have many ``Tag ``
55
- objects::
53
+ .. code-block :: php
56
54
57
55
// src/AppBundle/Entity/Tag.php
58
56
namespace AppBundle\Entity;
You can’t perform that action at this time.
0 commit comments