instead of using boolean why not just use tinyint(1) On Sep 8, 6:32 am, Shaz <shazam...@gmail.com> wrote: > Also if I remember correctly cakephp doesn't read bolean from a > database? > > http://nuts-and-bolts-of-cakephp.com/2008/10/06/cakephp-mysql-tinyint... > > On Sep 7, 10:11 pm, Miles J <mileswjohn...@gmail.com> wrote: > > > > > Couldn't you just pass 1 and 0? > > > Also your argument is backwards. True should be 1 and false should be > > 0. > > > isDeleted = true = 1 > > hasRelations = true = 1 > > > On Sep 7, 2:06 pm, "Dave Maharaj" <m...@davemaharaj.com> wrote: > > > > I am passing true or false as a condition in a find() but stumped how to > > > pull db records based on the true or false. > > > > Basically in the db table I have a bool field > > > > If TRUE is passed as a condition I need to get only records where the bool > > > value is ZERO, if FALSE get all ZERO and 1 records. > > > > Thoughts? > > > > Thanks > > > > Dave
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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en