From The Blog

CakePHP and MySQL tinyint datatype

21 September 2012, in CakePHPMySQL

I observed that CakePHP treats tinyint fields as boolean (true/false) , but after investigation found that:

if you set the data type for a field to tinyint with length of 1, then CakePHP will treat it as boolean.

So I changed it to tinyint(2),

That's weird about CakePHP



Post a Comment