@@ -210,32 +210,20 @@ zero tags when first created).
210210
211211 {# ... #}
212212
213- When the user submits the form, the submitted data for the ``tags `` field are
213+ When the user submits the form, the submitted data for the ``tags `` field is
214214used to construct an ``ArrayCollection `` of ``Tag `` objects, which is then set
215- on the ``tag `` field of the ``Task `` instance .
215+ on the ``tag `` field of the ``Task ``. It can be accessed via `` $task->getTags() `` .
216216
217- The ``tags `` collection is accessible naturally via ``$task->getTags() ``
218- and can be persisted to the database or used however you need.
219-
220- So far, this works great, but this doesn't allow you to dynamically add new
221- tags or delete existing tags. So, while editing existing tags will work
222- great, your user can't actually add any new tags yet.
217+ So far, this works great, but only to edit *existing * tags. It doesn't allow us
218+ yet to add new tags or delete existing ones.
223219
224220.. caution ::
225221
226- In this article, you embed only one collection, but you are not limited
227- to this. You can also embed nested collection as many levels down as you
228- like. But if you use Xdebug in your development setup, you may receive
229- a ``Maximum function nesting level of '100' reached, aborting! `` error.
230- This is due to the ``xdebug.max_nesting_level `` PHP setting, which defaults
231- to ``100 ``.
232-
233- This directive limits recursion to 100 calls which may not be enough for
234- rendering the form in the template if you render the whole form at
235- once (e.g ``form_widget(form) ``). To fix this you can set this directive
236- to a higher value (either via a ``php.ini `` file or via :phpfunction: `ini_set `,
237- for example in ``app/autoload.php ``) or render each form field by hand
238- using ``form_row() ``.
222+ You can embed nested collections as many levels down as you like. However,
223+ if you use Xdebug, you may receive a ``Maximum function nesting level of '100'
224+ reached, aborting! `` error. To fix this, increase the ``xdebug.max_nesting_level ``
225+ PHP setting, or render each form field by hand using ``form_row() `` instead of
226+ rendering the whole form at once (e.g ``form_widget(form) ``).
239227
240228.. _form-collections-new-prototype :
241229
0 commit comments