Saturday, May 26, 2012

database query: returned array shows boolean value "true" but not "false"

hi everyone,

weird thing. again. lol. i have an attribute "locked" in my users
table. it can have the values "true" or "false".

if users locked is true, then my array returns [User][locked] = > 1
if users locked is false, then my array returns [User][locked] = >

its just empty? i am not even close of getting this. i am using cake
1.3 and postgreSQL.

my attribute has this preference: locked boolean NOT NULL DEFAULT
false,


any idea? thanks :)

--
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@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: