Skip to content

Commit c5b8926

Browse files
committed
#4032 improved comments about em option
1 parent e5dbd49 commit c5b8926

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cookbook/form/data_transformers.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ by calling ``addModelTransformer`` (or ``addViewTransformer`` - see
122122
{
123123
// ...
124124

125-
// this assumes that the entity manager was passed in as an option
125+
// the "em" is an option that you pass when creating your form. Check out
126+
// the 3rd argument to createForm in the next code block to see how this
127+
// is passed to the form (also see setDefaultOptions).
126128
$entityManager = $options['em'];
127129
$transformer = new IssueToNumberTransformer($entityManager);
128130

0 commit comments

Comments
 (0)