CakePHP using saveAll: How do I save extra data with the HABTM link record?

后端 未结 1 1500
礼貌的吻别
礼貌的吻别 2021-01-27 04:16

I have been able to use CakePHP\'s saveAll method to simultaneously create \'Members\' and enroll them in an \'Event\' (creating the HABTM link record), which is awesome. For ex

相关标签:
1条回答
  • 2021-01-27 04:41

    You can use The Join Model in this case.

    0 讨论(0)
提交回复
热议问题