Is there a way to get CF9 ORM to insert NULL Values into the database rather than an empty string?
I've got a numeric field which can be null, but throws an error because it's trying to enter ''.
Either:
yourEntity.setNumber(javacast("null",""));
or, add a removeNumber method:
function removeNumber()
{
structDelete(variables,"number");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With