actually, there are only 2 states
TRUE and NOT TRUE
and thats how it is supposed to be checked
(in cakephp 1 or not 1)
with
if (!empty()) {...}
etc
it can help to disallow null, though
plus: i personally think it is cleaner
On 27 Aug., 16:16, psybear83 <[email protected]> wrote:
> Hi all
>
> I just noticed that when a boolean's database field is set to NULL,
> it's neither true nor false. Is this really true?
>
> Should I disallow NULL and set it to a 0 by default? Or is there a way
> to tell CakePHP to treat NULL as false?
>
> Thanks
> Josh
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en