Model view controller CFWheels-updateByKey()-键参数包含无效值

Model view controller CFWheels-updateByKey()-键参数包含无效值,model-view-controller,coldfusion,cfml,coldfusion-11,cfwheels,Model View Controller,Coldfusion,Cfml,Coldfusion 11,Cfwheels,上述代码在cfwheels中返回以下错误: 键参数包含无效值 建议的行动 键参数包含一个列表,但是此表没有 复合键。键参数允许使用值列表,但 这仅适用于表包含复合键的情况 现在,我通过使用update all方法解决了这个问题,如下所示: <cfset result = model("user").updateByKey( key=authUser.user_id , encryption_key=loca

上述代码在cfwheels中返回以下错误:

键参数包含无效值

建议的行动

键参数包含一个列表,但是此表没有 复合键。键参数允许使用值列表,但 这仅适用于表包含复合键的情况

现在,我通过使用update all方法解决了这个问题,如下所示:

<cfset  result = model("user").updateByKey(
                     key=authUser.user_id
                    , encryption_key=local.encryptionKey
                )>

我检查了数据库,找不到重复的主键。我还尝试在
updateByKey
方法中设置
instantiated=false
参数,但这也不起作用。如能解释为什么会发生这种情况,我们将不胜感激。
ps:除了用户id之外,表中最接近主键的是电子邮件地址,它是唯一的,不允许重复。

导致错误的authUser.user\u id的值是多少?导致错误的authUser.user\u id的值是多少?
<cfset recordsReturned = model("user").updateAll(
          encryption_key=local.encryptionKey
         , where="user_id=#authUser.user_id#"
     )>