首页 > collection的create方法不能向collection中添加model

collection的create方法不能向collection中添加model

当184行的create方法第一次执行时,会触发152和153的事件;但是当create方法第二次执行时,就不会触发

服务端用的是php+mysql


自己找到答案了,之前把model中的id属性设为0了。。。导致每次create都是update。。

【热门文章】
【热门文章】