Skip to content

Commit a89448d

Browse files
committed
minor #5012 #4032 improved comments about em option (raulfraile)
This PR was merged into the 2.3 branch. Discussion ---------- #4032 improved comments about em option | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #4032 Commits ------- c5b8926 #4032 improved comments about em option
2 parents 1c50386 + c5b8926 commit a89448d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: 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)