diff --git a/cookbook/form/data_transformers.rst b/cookbook/form/data_transformers.rst index d6e102e5f89..e66d9a86c70 100644 --- a/cookbook/form/data_transformers.rst +++ b/cookbook/form/data_transformers.rst @@ -365,19 +365,20 @@ it's recognized as a custom field type: .. code-block:: yaml + # app/config/services.yml services: app.type.issue_selector: class: AppBundle\Form\IssueSelectorType - arguments: ["@doctrine.orm.default_entity_manager"] + arguments: ["@doctrine.orm.entity_manager"] tags: - { name: form.type, alias: issue_selector } .. code-block:: xml - + - + @@ -391,7 +392,7 @@ it's recognized as a custom field type: ->setDefinition('app.type.issue_selector', new Definition( 'AppBundle\Form\IssueSelectorType' ), array( - new Reference('doctrine.orm.default_entity_manager'), + new Reference('doctrine.orm.entity_manager'), )) ->addTag('form.type', array( 'alias' => 'issue_selector',