My suggestion,

as far as I understood you, cakephp inserts NULL instead of '0' right?

Set your database to default '0' as it should work.
- If it does not add "function beforeSave() { /* ... */ }" to your
YourModelWithLotsOfInts
- Within that check if a variable is a.) "" or empty or NULL or
whatever your want to test again
- ...As well if it is your desired INT - check var $_schema for that.
- You can do that in a loop against the data array.
- If the constrains are right just change those values before saving.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to