From c5b8926a0d3921e6fd3f83e1813bd13104970555 Mon Sep 17 00:00:00 2001 From: Raul Fraile Date: Wed, 18 Feb 2015 23:32:19 +0100 Subject: [PATCH] #4032 improved comments about em option --- cookbook/form/data_transformers.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbook/form/data_transformers.rst b/cookbook/form/data_transformers.rst index 072d02a1aa8..adc5596ec51 100644 --- a/cookbook/form/data_transformers.rst +++ b/cookbook/form/data_transformers.rst @@ -122,7 +122,9 @@ by calling ``addModelTransformer`` (or ``addViewTransformer`` - see { // ... - // this assumes that the entity manager was passed in as an option + // the "em" is an option that you pass when creating your form. Check out + // the 3rd argument to createForm in the next code block to see how this + // is passed to the form (also see setDefaultOptions). $entityManager = $options['em']; $transformer = new IssueToNumberTransformer($entityManager);