title: In symfony, how to set the value of a form field?
body: <p>I'm overriding my doSave() method to basically do the following: I have a sfWidgetFormPropelChoice field that the user can either choose from, or type a new option. How can I change the widget's value? Or maybe I am approaching this the wrong way. So here is how I overrode the doSave() method:</p>
  
  <pre><code>public function doSave($con = null)
  {
      // Save the manufacturer as either new or existing.
      $manufacturer_obj = ManufacturerPeer::retrieveByName($this['manufacturer_id']-&gt;getValue());
      if (!empty($manufacturer_obj))
      {
          $this-&gt;getObject()-&gt;setManufacturerId($manufacturer_obj-&gt;getId()); // NEED TO CHANGE THIS TO UPDATE WIDGET'S VALUE INSTEAD?
      }
      else
      {
          $new = new Manufacturer();
          $new-&gt;setName($this['manufacturer_id']-&gt;getValue());
          $new-&gt;save();
          $this-&gt;getObject()-&gt;setManufacturerId($new-&gt;getId()); // NEED TO CHANGE THIS TO UPDATE WIDGET'S VALUE INSTEAD?
      }
  
      parent::doSave($con);
  }
  </code></pre>