We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent910af9c commit7dbcb7cCopy full SHA for 7dbcb7c
form/form_dependencies.rst
@@ -100,6 +100,7 @@ Next, register this as a service and tag it with ``form.type``:
100
services:
101
app.form.type.task:
102
class:AppBundle\Form\TaskType
103
+arguments:['@doctrine.orm.entity_manager']
104
tags:
105
-{ name: form.type, alias: app_task }
106
@@ -113,6 +114,7 @@ Next, register this as a service and tag it with ``form.type``:
113
114
115
<services>
116
<serviceid="app.form.type.task"class="AppBundle\Form\TaskType">
117
+ <argumenttype="service"id="doctrine.orm.entity_manager"/>
118
<tagname="form.type"alias="app_task" />
119
</service>
120
</services>
@@ -126,6 +128,7 @@ Next, register this as a service and tag it with ``form.type``:
126
128
'app.form.type.task',
127
129
'AppBundle\Form\TaskType'
130
)
131
+ ->addArgument('@doctrine.orm.entity_manager')
132
->addTag('form.type', array(
133
'alias' => 'app_task',
134
))