-1
我已经使用“save(null,{method:'insert'})”向表中添加新记录。我不想在插入过程中设置“updated_at”。我希望update_at保持空白,直到我进行更新。updated_at列在插入期间已更改
出了什么问题?
Product.forge({
kind : 'data',
comment : 'comment',
})
.save(null, {method: 'insert'})
=======================
bookshelf.Model.extend({
tableName : 'products',
hasTimestamps : true})
谢谢你的回答! – Evabila