Set null value in Cf9 ORM

Is there a way for Cf9 ORM to insert null values into the database instead of empty strings?

I have a numeric field that can be null, but an error was caused by trying to enter

Solution

Or:

yourEntity.setNumber(javacast("null",""));

Or add a removenumber method:

function removeNumber()
{
    structDelete(variables,"number");
}
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>