title: how to inject data into a form in symfony2
body: <p>I have a call at my controller:</p>
  
  <p>Controller:</p>
  
  <pre><code>    if($appointment-&gt;getAnamnese() == NULL){
          $entity = new Anamnese($appointment);
          $form = $this-&gt;createForm(new AnamneseType(),null,array('history' =&gt; 'Digite o Historico aqui'));
      }else{ 
          $entity = $appointment-&gt;getAnamnese();
          $form = $this-&gt;createForm(new AnamneseType(), null, array('history' =&gt; $entity-&gt;getHistory()));
      }
  </code></pre>
  
  <p>AnamneseType:</p>
  
  <pre><code>    $builder-&gt;add('history', 'ckeditor', array(
          'data' =&gt; $options['history'], 'toolbar' =&gt; $toolbar));
  }
  
  
  public function getDefaultOptions(array $options)
  {
      return array(
              'history' =&gt; "Digite o Historico aqui"
      );
  }
  </code></pre>
  
  <p>and i want to inject that history information to my form but its not working as i thought it would be, just setting the 'data' option...</p>
  
  <p>how can i do it?</p>
  
  <p>the problem is that after inserting data, i cant put it back to the form..</p>