title: Specific checkboxes checked in symfony 1.4
body: <p>I'm able to do the following for all checkboxes in a set (in an action):</p>
  
  <pre><code>$this-&gt;form-&gt;getWidget('some_form_field')-&gt;setAttribute('checked', 'checked');
  </code></pre>
  
  <p>... but I'm unable to set specific checkboxes to ticked on the basis of data returned from the db.</p>
  
  <p>I'm after something like:</p>
  
  <pre><code>$this-&gt;form-&gt;getWidget('some_form_field')-&gt;setAttributes(array(....));
  </code></pre>
  
  <p>... where I can refer to the specific checkboxes to be ticked somehow, or pass an array to it.</p>
  
  <p>There's nothing in the symfony documentation on this specifically and I've had enough of trying a dozen combinations to get it work.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks.</p>