Tips Implant a set of Models
Symfony Models can be implant a set of a great many other variations, that is beneficial to modify relevant organizations in one single function. In this article, you are able to would a form to help you revise a role category and you may, best from inside the same form, you are able to edit, would and remove of several Tag things associated with one to Activity.
How to Embed some Forms
Second, let us would a form to do the job organization, playing with good CollectionType world of TagType forms. This can help us tailor every Level parts of a task right within the activity mode by itself:
If the associate submits the shape, brand new filed research to your tags field is used to build a keen ArrayCollection out of Tag stuff. New collection is then intent on the latest mark realm of the fresh new Activity and can getting accessed through $task->getTags() .
Yet, that it is effective, however, in order to revise present labels. It will not allow us yet to add the fresh tags otherwise erase established ones.
You might embed nested collections as many membership down as you particularly. Although not, by using Xdebug, it’s also possible to found a max setting nesting number of ‚100‘ attained, aborting! mistake. To fix that it, improve the xdebug.max_nesting_top PHP mode, or offer for each form industry by hand playing with mode_row() unlike rendering the whole means at the same time (e.g function_widget(form) ).