saveAll问题

浏览:4124 发布日期:2016/06/23 分类:求助交流 关键字: saveAll
5.0RC3中,先使用save保存了单条数据,然后再saveAll保存其他数据时会把id也传过去了,请问什么原因

已解决
Model.php 中行621附近 $result = $this->db()->insert($this->data, $replace);修正为 $result = $this->db()->insert($data, $replace);

行544附近 if (!empty($where)) {
$this->isUpdate = true;
}
改为 if (!empty($where)) {
$this->isUpdate = true;
}else{
$this->isUpdate = false;
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>