saveMany basics


#1

Hello,

We are trying to come up with the right way of saving our data in this scenario.

We have a time entry form where we will select the date at the top
Below that will be a list of employees (consisting of an employee ID, first name and last name) and then a field for time in, and a field for a timecode. (blanks are “normal” days, other codes used for sick, vacation etc.)

I think what we need to use is saveMany. (https://book.cakephp.org/3.0/en/orm/saving-data.html#saving-multiple-entities) I am just not grasping how to actually implement it particularly in this scenario.


#2

What is your question?


#3

Since I am not grasping how to implement it…How do I implement it?


#4

If someone has a step by step example of how to do a basic saveMany that might be helpful.