uhm... that looks like a workaround to me... http://book.cakephp.org/view/743/MySQL
"A tinyint(1) field is considered a boolean by CakePHP." so why Cake is ignoring the FALSE (zero) value? On 2 Feb, 15:05, Tilen Majerle <[email protected]> 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 <[email protected]> > > > > > 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.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > [email protected]<cake-php%[email protected]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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
