你是不是用$model = new Model();???添加数据是new Model但修改数据是将数据查询出来$model = Model::find().....然后保存就没问题了我猜你是new 一个model 然后save() 这样是添加数据
!