title: How to get a Doctrine2 Entity method from a Symfony2 Form in Twig
body: <p>I'm in a Twig template, and I have a "form" variable that represents a Doctrine2 Entity Form.</p>
  
  <p>This Entity has properties that are mapped into the form, but the Entity has also some methods that I would like to access from my Twig template.</p>
  
  <p>I would love to do something like this:</p>
  
  <pre><code>{{ form.myMethod }}
  </code></pre>
  
  <p>or maybe something like this:</p>
  
  <pre><code>{{ form.getEntity.myMethod }}
  </code></pre>
  
  <p>but unfortunately it doesn't work.</p>
  
  <p>How could I achieve what I need?</p>