Closed pnomolos closed 11 years ago
A follow-up to this. Should setting an Integer field to '' be cast to 0 or set to NULL? I'm running into this issue when passing $_POST data...
To me, an empty string is the same as NULL - It's no value.
Would you feel comfortable then having it cast an empty string to a NULL?
Yes, that's fine with me
Merged with a cherry-pick due to issues with merge and rebase. SHA1: eb53bae6998c9e7bc9941b1ed4aa8febdc48c19c
This also includes a fix for isModified - fields set to NULL return false for
isset
so I usedarray_key_exists
instead.