title: Symfony 2 forms -- make an array to be serialized on the database?
body: <p>How can I make a Symfony 2 form so that a particular field is serialized on the database?</p>
  
  <p>The client side will send an array for the field <code>foo</code>, which is <code>VARCHAR</code> in the database. I want the <code>foo</code> be ran through <code>serialize()</code>, but I don't know how to do that, because all I do is:</p>
  
  <pre><code>$form-&gt;bind($request);
  </code></pre>