File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -365,19 +365,20 @@ it's recognized as a custom field type:
365
365
366
366
.. code-block :: yaml
367
367
368
+ # app/config/services.yml
368
369
services :
369
370
app.type.issue_selector :
370
371
class : AppBundle\Form\IssueSelectorType
371
- arguments : ["@doctrine.orm.default_entity_manager "]
372
+ arguments : ["@doctrine.orm.entity_manager "]
372
373
tags :
373
374
- { name: form.type, alias: issue_selector }
374
375
375
376
376
377
.. code-block :: xml
377
-
378
+
378
379
<service id =" app.type.issue_selector"
379
380
class =" AppBundle\Form\IssueSelectorType" >
380
- <argument type =" service" id =" doctrine.orm.default_entity_manager " />
381
+ <argument type =" service" id =" doctrine.orm.entity_manager " />
381
382
<tag name =" form.type" alias =" issue_selector" />
382
383
</service >
383
384
@@ -391,7 +392,7 @@ it's recognized as a custom field type:
391
392
->setDefinition('app.type.issue_selector', new Definition(
392
393
'AppBundle\Form\IssueSelectorType'
393
394
), array(
394
- new Reference('doctrine.orm.default_entity_manager '),
395
+ new Reference('doctrine.orm.entity_manager '),
395
396
))
396
397
->addTag('form.type', array(
397
398
'alias' => 'issue_selector',
You can’t perform that action at this time.
0 commit comments