Saving Multiple Select in input

前端 未结 3 1423
攒了一身酷
攒了一身酷 2021-01-28 16:38

I have model for

  • user(id,name)
  • section(id,name)
  • section_users(id,user_id,section_id)

The admin adds all the users and sections

3条回答
  •  被撕碎了的回忆
    2021-01-28 17:02

    CakePHP has the saveMany function, as mentioned in the documentation:

    Model::saveMany(array $data = null, array $options = array())¶
    

提交回复
热议问题