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 this ticket.
Is this a common problem? Is there a workaround?
I can get it working by changing line 70 in sfWidgetFormInputCheckbox to:
if (null !== $value && $value !== false && $value !== 0)
but I'd rather not alter core symfony files.