title: Symfony - Form item as plain text
body: <p>I have a form that contains a collection of forms (a <code>Vote</code> with many <code>VoteChoice</code>). The <code>VoteChoiceType</code> is as follows</p>
  
  <pre><code>class VoteChoiceType extends AbstractType
  {
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder
              -&gt;add('answer', null, array('disabled' =&gt; true))
              -&gt;add('priority', null);
      }
  
      public function configureOptions(OptionsResolver $resolver)
      {
          $resolver-&gt;setDefaults(array(
              'data_class' =&gt; 'PollBundle\Entity\VoteChoice',
          ));
      }
  }
  </code></pre>
  
  <p>Now in my Controller I create and populate many <code>VoteChoices</code>, setting the <code>answer</code> according to the available choices for the current poll (derived from the URL)</p>
  
  <pre><code>$vote = new Vote();
  $vote-&gt;setPoll($poll);
  foreach ($vote-&gt;getPoll()-&gt;getPollOptions() as $op) {
      $vc = New VoteChoice();
      $vote-&gt;addVoteChoice($vc-&gt;setAnswer($op));
  }
  </code></pre>
  
  <p>So when the Form loads, I want all the options to display only - not to be an actual choice, and then the user can set the priority they want. However, the answer is of every single answer I have in my <code>poll_options</code> table (each <code>Poll</code> has many <code>PollOption</code>, similar to how each <code>Vote</code> has many <code>VoteChoice</code>)</p>
  
  <p>Current twig template</p>
  
  <pre><code>&lt;ul class="voteChoices" data-prototype="{{ form_widget(form.voteChoices.vars.prototype)|e('html_attr')  }}"&gt;
      {% for voteChoice in form.voteChoices %}
              &lt;li&gt;{{ form_row(voteChoice.answer) }} {{ form_row(voteChoice.priority) }}&lt;/li&gt;
      {% endfor %}
  &lt;/ul&gt;
  &lt;/div&gt;
  &lt;p&gt;&lt;button type="submit" class="btn btn-success"&gt;Go!&lt;/button&gt;&lt;/p&gt;
  {{ form_end(form) }}
  </code></pre>
  
  <p>I want the voteChoice.answer as a plain text (so it's not part of a dropdown - I know I can disable it in the FormBuilder, but I don't want it to appear as part of a drop-down menu, I just want it as plain text)</p>
  
  <p>If I use voteChoice.answer I get the following symfony error</p>
  
  <blockquote>
    <p>An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Object of class Symfony\Component\Form\FormView could not be converted to string") in poll\vote.html.twig at line 9.</p>
  </blockquote>
  
  <p>I have a __toString function in my <code>VoteChoice</code> class.</p>