Skip to content

Commit

Permalink
minor #5012 #4032 improved comments about em option (raulfraile)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
weaverryan committed Mar 14, 2015
2 parents 1c50386 + c5b8926 commit a89448d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cookbook/form/data_transformers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a89448d

Please sign in to comment.