title: Symfony - set form value on save
body: <p>A quick question. I have a symfony form. When I save the form, I want my created_by field to be set automatically on save.</p>
  
  <p>So, I'm passing the current user id as an option in the form:</p>
  
  <pre><code>$this-&gt;form = new ContractForm(null,array("created_by"=&gt;$this-&gt;getUser()-&gt;getId()));
  </code></pre>
  
  <p>And in the configure method of the form class I have:</p>
  
  <pre><code>$this-&gt;setDefault('created_by', $this-&gt;getOption("created_by"));
  </code></pre>
  
  <p>If I had a created_by widget and set it to hidden, this would work great, however, I don't want to have a field displayed as a user could easily manipulate using firebug or other tools alike.</p>
  
  <p>So my question to you, how do I save a column value if the field does not exist as a widget?</p>