cake-php@googlegroups.com
[Top] [All Lists]

Re: Cake loads FALSE values as "" (empty)

Subject: Re: Cake loads FALSE values as "" empty
From: Ernesto
Date: Thu, 3 Feb 2011 00:10:01 -0800 PST
@ Miles J

i'm masochist ;-D

usually i try to strictly respect cake conventions.

this is the first time i notice this behavior.
cake always worked flawlessly with his "" empty false values

On 2 Feb, 19:19, Miles J <mileswjohn...@xxxxxxxxx> wrote:
> Well, why are you even using 2.0?
>
> On Feb 2, 8:59 am, euromark <dereurom...@xxxxxxxxxxxxxx> wrote:
>
>
>
> > nope, tilen
>
> > its tinyint(1) !!!
> > ideally unsigned (cant be negative anyway)
> > thats what booleans are stored as
>
> > tinyint(2) is for "pseudo" enum fields or small integer values
>
> > On 2 Feb., 15:05, Tilen Majerle <tilen.maje...@xxxxxxxxx> wrote:
>
> > > for values like this, cake uses in database tinyint(2) fieldtype, where 1
> > > means true and 0 means false (compatible with form helper)
> > > --
> > > Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> > > 2011/2/2 Ernesto <e.fanz...@xxxxxxxxx>
>
> > > > Hello.
>
> > > > i noticed that Cake loads boolean values stored in DB as "" (empty
> > > > value) instead of 0 (zero).
>
> > > > is that intended?
> > > > is there a way to avoid this?
>
> > > > i'm using 2.0-dev
>
> > > > --
> > > > Our newest site for the community: CakePHP Video Tutorials
> > > >http://tv.cakephp.org
> > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > > others with their CakePHP related questions.
>
> > > > To unsubscribe from this group, send email to
> > > > cake-php+unsubscribe@xxxxxxxxxxxxxxxx<cake-php%2Bunsubscr...@xxxxxxxxxxxxxx
> > > >  om>For more options, visit this group at
> > > >http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 
http://groups.google.com/group/cake-php

<Prev in Thread] Current Thread [Next in Thread>