title: symfony: boolean columns not rendering checkbox widgets as checked
body: <p>Using Doctrine in symfony 1.4 I have several boolean columns defined (stored as a tinyint in mySQL). The checkbox widgets are always rendering as checked, even when the returned value is '0'. It seems related to <a href="http://trac.symfony-project.org/ticket/3996" rel="nofollow noreferrer">this ticket</a>.</p>
  
  <p>Is this a common problem? Is there a workaround?</p>
  
  <p>I can get it working by changing line 70 in sfWidgetFormInputCheckbox to:</p>
  
  <pre><code>if (null !== $value &amp;&amp; $value !== false &amp;&amp; $value !== 0)
  </code></pre>
  
  <p>but I'd rather not alter core symfony files.</p>