我有一个可以与多个LineItem模型关联的Invoice模型。当我调用setLineItems(lineItems, {transaction: t}); (其中lineItems是LineItem对象的数组)时,我得到了一个错误,这是由于scnenes后面的Sequelizefields, including a numeric id Invoice.associate = function (models) {
Invoice.hasManydbInvoice.setLineItems(
我正在尝试使用associations setter方法将联系人列表与客户相关联,但是,它总是抛出错误'invalid input syntax for integer:"object Object"‘错误中提到的相关查询是:UPDATE "contactperson" SET "refCustomerId"=$1,"updatedAt"=$2 WHERE "id" IN ('[object Object