Coldfusion ORM can';不合适(即使它应该)

Coldfusion ORM can';不合适(即使它应该),coldfusion,coldfusion-9,Coldfusion,Coldfusion 9,当我试图拯救时 entLog = EntityNew("CCF_MiscLog", {LogType = arguments.LogType, CCFLocationID = this.ccflocationid, onTable = arguments.onTable, message = arguments.message, CreateBy = variables.by}); EntitySave(entLog); } 我失败了 Cannot convert the value 140

当我试图拯救时

entLog = EntityNew("CCF_MiscLog", {LogType = arguments.LogType, CCFLocationID = this.ccflocationid, onTable = arguments.onTable, message = arguments.message, CreateBy = variables.by});

EntitySave(entLog);
}
我失败了

Cannot convert the value 140.0 to byte because it cannot fit inside a byte.  
我知道它指的是
CCFLocationID=this.CCFLocationID

此字段是SQL server中的一个小字段。它最多可以存储255个数字。我试过了

<cfproperty name="ccflocationid" ormtype="int">


但这没有帮助。有没有办法让它配合使用?

您是否尝试过将该值包装到
int()
函数中?如果需要小数,请使用其他数据类型

entLog = EntityNew("CCF_MiscLog", {LogType = arguments.LogType, CCFLocationID = int(this.ccflocationid), onTable = arguments.onTable, message = arguments.message, CreateBy = variables.by});

EntitySave(entLog);
}