What is the difference between save and saveAll function in cakephp?

前端 未结 3 1712
慢半拍i
慢半拍i 2021-01-21 21:41

can any one give example please

3条回答
  •  长发绾君心
    2021-01-21 22:12

    saveAll saves all model data in a form, whereas save only saves one. So you would use save to save a single value, while saveAll basically saves you the trouble of using a loop for save.

提交回复
热议问题