1. mysql不使用关联模型不支持关联更新:

错 :M('mysql')->alias('m')->join('table AS t ON t.mid = m.id')->save(['t.mid'=>1]);

对:M('table')->save(['mid'=>1]);

相关文章: