I may not understand completely what you are trying to do. I've kept my boolean elements at tinyint and use something like this with the views for presentation:
<td class="confirmed"><?php echo $user['User']['confirmed'] ? 'Yes' : 'No'; ?></td> That give a more pleasing visual appearance than a '1' or '0', yet maintains the database value as boolean. There is something similar that can be done in Javascript for ExtJS grids and forms. Does this help? On Oct 8, 6:36 pm, Xhaphir <hel...@coffeecoder.de> wrote: > Hi, > > i have a small problem in cakePHP. I saved a lot of booleans and > integers in a mySQL Database and > cakePHP is converting my boolean values nicely to a tinyint. But not > back. > > In most cases this is not a problem but I would like to iterate over > all values and convert all booleans to "yes"/"no". > In this case I am unable to determine if a value is a boolean or an > integer. > > Maybe I'm just don't see the solution.. > > Thanks for your help, > Helmut --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---