Thursday, September 9, 2010

CakePHP, MySQL and tinyint(1)

Have you ever tried to set a greater than 1 integer in a tinyint(1) field with CakePHP ?

Impossible !

CakePHP handles tinyint(1) like boolean ! So, use tinyint(1) fields only for boolean with CakePHP !

No comments :

Post a Comment

Comments are moderated before being published.